fabio-t / alone-rl

A free to use, survival open-world roguelike game
GNU Affero General Public License v3.0
38 stars 2 forks source link

Fix order of systems for new games #32

Closed fabio-t closed 6 years ago

fabio-t commented 6 years ago
  1. StartScreen should see map and bootstrap essentially doing nothing yet
  2. If new game, load map generation; only process MapSystem when map is chosen (make the "init" a method that must be called, so we manually call it either in MapScreen or in StartScreen if player chooses Continue); only process "bootstrap" when player stats are chosen (again, should not actually process but just present an API to place creatures and trees), then enter playscreen
fabio-t commented 6 years ago

Right now Bootstrap runs before map, and thus object placement is wrong.