-
write a new saga called
gameSaga
, this saga must react toGAME_STATE_REQUESTED
events and change the game state accordingly. -
add a new reducer called
targets
, and changeGameLayout
, to render<Target>
elements for each item in this state (hint: use a default state) -
implement these rules in using sagas:
- when a target is clicked, it is destroyed,
- when a target is destroyed, the score is incremented by 1,
- when a target dies by itself, the lives are decremented by 1.
- update your gameSaga:
- every seconds, one target is spawned
- after 5 killed targets, two are spawned every second
- after 15 killed targets, three are spawned
- Make this game fun. (all bonii must be listed when you deliver your game to your bored teacher)