Skip to content

Instantly share code, notes, and snippets.

@tene
Created December 2, 2008 09:12
Show Gist options
  • Save tene/31066 to your computer and use it in GitHub Desktop.
Save tene/31066 to your computer and use it in GitHub Desktop.
Store a map, minus all the players
Load a map in preference to reading from ascii
save the map on shutdown
Store regular and scheduled events in the map itself. Pull them out and schedule them after loading.
Add some commands to modify the map, see how it works out.
--------------------------------
copy client.pl to admin.pl
abstract out common code
choose some reasonable commands
toggle between wall and open tile
create items
destroy items
move items
Refactor the status panel in UI to accept a closure
Look for other refactors in UI
Implement admin connections in server.pl
implement the map-editing commands chose earlier in the server
heavily refactor the server to move code into separate libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment