jonoxia / rpgbase

Generic Node.js/HTML5 role-playing game client/server
8 stars 6 forks source link

Refactor: Maze screen should use same MapDomain class as Map screen #60

Closed jonoxia closed 11 years ago

jonoxia commented 11 years ago

otherwise we're going to end up re-implementing a bunch of stuff between MapDomain and its maze equivalent. Stuff like having NPCs at given locations, tracking the player position, encounter tables, step handlers, etc.are exactly the same and should only be implemented once. And then maybe the domain itself has a flag on it telling whether to render it in first-person view (MazeScreen) or top-down view (MapScreen).

jonoxia commented 11 years ago

Done!