https://github.com/expo/fluxpybird
some ideas involving games and Redux
https://github.com/expo/fluxpybird
Last synced: 6 months ago
JSON representation
some ideas involving games and Redux
- Host: GitHub
- URL: https://github.com/expo/fluxpybird
- Owner: expo
- Created: 2015-12-02T00:02:37.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-22T09:59:44.000Z (over 9 years ago)
- Last Synced: 2025-04-08T12:09:43.332Z (6 months ago)
- Language: JavaScript
- Size: 255 KB
- Stars: 182
- Watchers: 8
- Forks: 23
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
This is a game written with [exponent](http://exponentjs.com/), [react-native](https://facebook.github.io/react-native/) and [redux](https://github.com/rackt/redux).
Here are a few quick notes. I'll write a longer blog post soon explaining in more detail!
1. Redux actions are used for all game events. For example, the `{ type: 'TOUCH', pressed: }` event, when dispatched, causes the game's reducers to respond to a touch press. You see in the above GIF image a `queueDispatch(...)` call which queues an action for dispatch on next `'TICK'` (which is itself an action `{ type: TICK, dt: