So here are the user stories for the Crawler:
Reducer - initializers
- User: health, level, weapon, dmgrange, xp, explored map area (modifiers: health items, better weapons)
- Items: Location, type (weapon, health)
- Enemies: Location, type, level (normal, boss)
- Map boundaries
Reducers
- ATTACK_ENEMY
- ATTACK_BOSS
- MOVE_EMPTY
- PICK_ITEM
Containers
- game map
- status bar
Action creators
- Keypress
- Restart
But I think I am getting ahead of myself. I need a Minimum Viable Game. So I am just going to do this subset:
Reducer
- User
- Map Boundaries
Reducers
- MOVE_EMPTY
Containers
- game Map
Action Creators
- Keypress
- Restart
Let’s go.
4.45am checking in. i had a brief moment of bliss (had a working version of the MVG described above but it was transposed) and then i edited a bunch of stuff and now i am running into a serious bug with regards to changing constants. filed it in SO as the guys there have been very helpful. fingers crossed. http://stackoverflow.com/questions/41706625/why-is-redux-able-to-change-my-constant-output-from-an-initializing-reducer
anyway here is the MVG Pen http://codepen.io/swyx/pen/MJbezj?editors=1010