Our project brief this week was to use React to build an interactive game that uses data from an API.
We used:
- the Github API
- whack-a-mole style games as our inspiration
This week, we discovered about VS Code's collaboration tool, Live Share. When sharing an editor in a collaboration session for the first time, Mariya exclaimed "there's a ghost in my code!". And thus the project's idea was born! 🐤
Inspired by that 1980 classic arcade game, Pac-Man, this is...
- Go to boo-lean-said-the-ghost.netlify.app
- Sign up with your GitHub username and click "Play".
- Click on a ghost to kill it. ⚔️
- The game is over when you've killed all the ghosts. 😬
User sign up page:
Game play:
- Clone this repo
- Run
npm run dev
- Open
localhost:3000
- Accept some user input (e.g. a username)
- Query an API (e.g. the Github API, or any other fun one)
- Populate the UI with API data
- Have some form of persistent state and interactivity, e.g. a hunger bar
- Save your state to localstorage so you can leave the page and come back later.
- Make it look great
- Make the ghosts move
- Glow effect around ghosts ❇️
- Difficulty levels (number of ghosts)
- React
- HTML
- CSS
- Javascript / ES6
- Figma
- Vite
- Netlify
- GitHub's API
- VS Code
- ✖️ End-game screen is not yet implemented
- ✖️ Ghosts do not reappear elsewhere
- ✖️ Not mobile responsive