DodgerBox: A 2D Game that uses an Ethereum smart contract to maintain a directory of players and their high scores. You are a square box at the center of the game. Your job is to use your arrow keys to shield yourself from the enemies! Metamask transactions are required to update and retrieve the player's high score.
Enemies are flying towards you from all directions. To survive the game you must use your arrow keys (up, down, left, right) to toggle the shields on each side of your player. If you are hit by an enemy, you lose a life, of which you have 3. You get a point for each enemy you block with your shield.
build
contains the contract ABI's in JSON formatclient
contains the front-end codecontracts
contains the Solidity Smart Contractsmigrations
contains migration informationtest
contains the truffle tests
- https://dodgerbox.netlify.app/
- You will need a test account in Metamask on the Ropsten Network
ganache-cli
- make sure it is running on port
8545
truffle migrate --reset
truffle test
- You will need a test account in Metamask on the Ropsten Network
cd client
npm install
node server.js
- navigate to localhost:3000