Skip to content

jbenais/saga-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. write a new saga called gameSaga, this saga must react to GAME_STATE_REQUESTED events and change the game state accordingly.

  2. add a new reducer called targets, and change GameLayout, to render <Target> elements for each item in this state (hint: use a default state)

  3. 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.
  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
  1. Make this game fun. (all bonii must be listed when you deliver your game to your bored teacher)

About

A simple game using React and redux-saga

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published