Managing State | July 3, 2018
Collaborators
- Cameron Button
- Mike Chu
A tamagotchi game using React.
-
Install Node.js on local machine.
-
Clone repository and navigate to
tamagotchi
. -
Run
npm install
to load required packages.
-
Development Mode:
npm start
-
Production Build:
npm run build
- Locate build files in
tamagotchi/build
.
- Locate build files in
None.
- JavaScript
- React
- Babel
- Webpack
+---------+
| |
| App |
| |
+----+----+
|
+-----------+-------------------+--------------------+---------------------+
| | | | |
| | | | |
| +-------+-------+ +-------+-------+ +--------+-------+ +---------+---------+
| | | | | | | | |
| | StatusBar | | ActionBar | | EnvEffects | | StatusEffects |
| | | | | | | | |
| +---------------+ +-------+-------+ +--------+-------+ +---------+---------+
| | | |
| | | |
| +-------+-------+ +------+------+ +-------+--------+
| | | | | | |
| | ActionBtn | | EnvIcon | | StatusIcon |
| | | | | | |
| +---------------+ +-------------+ +----------------+
|
|
|
+---+ ROUTES +---+-------------+----------------------+--------------------+
| | | |
| | | |
| +---------+--------+ +---------+--------+ +-------+--------+
| | | | | | |
| | UnhappyState | | NeutralState | | HappyState |
| | | | | | |
| +------------------+ +------------------+ +----------------+
|
|
+-------------+-------------------+------------------+
| | | |
| | | |
| +-------+-------+ +-------+------+ +-------+--------+
| | | | | | |
| | PlayState | | EatState | | SleepState |
| | | | | | |
| +---------------+ +--------------+ +----------------+
|
|
+-------------+-------------------+
| |
| |
+-------+--------+ +------+-------+
| | | |
| DeathState | | Error404 |
| | | |
+----------------+ +--------------+
This software is licensed under the MIT license.
Copyright (c) 2018 Cameron Button & Mike Chu