Welcome to Hodl the Throdl, a platformer game where you collect coins that you can then convert into cryptocurrency. We made our own cryptocurrency "HODL coin" using an ERC20 smart contract running off of a local blockchain. Once you have enough HODL coin, you can buy character models and play them in game!
- Ganache: Create workspace via Quickstart, go to settings and add truffle-config.js path via 'Add Project' button. Proceed by clicking 'Save and Restart' button
- run truffle migrate
- After migrating contracts to ganache local network, make sure to grab the public address and private key of the first address listed in Ganache GUI and add them in.
- In Ganache GUI, go to Contracts Page, click contract titled 'HodlCoin' and copy the address. Past the address in Routes.js where hodlCoin is being declared.
- Go to Metamask chrome extension, import account. Proceed to copy/paste the private key of account (bank account is first in Ganache GUI list, user can be any of the others).
- After migrating contracts to ganache, go to Ganache GUI's Transactions page
- Find transaction that has event name 'Encoded Event' & Contract 'HodlCoin'. Proceed to click event
- Copy the contract address and paste to Metamark Wallet via Import Token
- Videogame Assets: https://pixelfrog-assets.itch.io/pixel-adventure-1