Help with states and substates
Posted: Thu Aug 17, 2017 5:11 pm
Hello, after creating a arcanoid clone I wanted to go a step further but I'm having trouble with how to structure my project.
Basically I wan't to make a (simple) Binding of Isaac copy with:
=>A player character with health and different attributes
=>A map composed of different rooms with ennemies inside and special rooms (boss and item room)
=>When the player enter a room he need to kill all the ennemies inside so clear it, if he don't clear it the room and the ennemies inside are reinitialised
So i've been thinking about making each room it's own substate of a big game state but I don't know how to implement this and if it's a good way of doing it. Thanks
Basically I wan't to make a (simple) Binding of Isaac copy with:
=>A player character with health and different attributes
=>A map composed of different rooms with ennemies inside and special rooms (boss and item room)
=>When the player enter a room he need to kill all the ennemies inside so clear it, if he don't clear it the room and the ennemies inside are reinitialised
So i've been thinking about making each room it's own substate of a big game state but I don't know how to implement this and if it's a good way of doing it. Thanks