bsergent / overmorrow

Typescript canvas game engine
http://challengercity.com/v4/projects/overmorrow/
0 stars 1 forks source link

Add world type that is modifiable in-game #27

Open bsergent opened 6 years ago

bsergent commented 6 years ago

Another another child to World (likely WorldSandbox) that instead of loading a TiledMap and simply displaying it with limited collision and interactables, is fully destructible. This will be used for the dungeon levels in Secret of Wynn, but could also be used for any game that needs, basically, a sandbox. This will require tile types, new rendering of them, and a eventually serialization system for saving. There will probably need to be another class, TilePalette, that will serve as the catalog of all possible tile types, much like the ItemType system. Rather this TilePalette should be world-dependent or game-dependent is undecided as of yet.