by tsdocode
Customize classic Flappy Bird game with Blockchain back-end
p/s: Checkout full project in playcanvas
- Game engine: Playcanvas
- Blockchain:
- Local test network: Ganache
- Public test network: Rinkeby
- Smart contract tool: Truffle
- NFT: Openzeppelin
- Lucky draw bird
- Buy bird via Opensea
- Reward when complete game
- bonus based on bird's rare
- Rare:
- Normal: 50%
- Rare: 30%
- Epic: 20%
- Legendary: 10%
- Bonus:
- Normal: 0%
- Rare: 20%
- Epic: 30%
- Legendary: 100%
- Max Stamina:
- Normal: 999
- Rare: 300
- Epic: 200
- Legendary: 20
This is not a secure random method, I will update later.
- Random number in js
- Random rare base on this number in smart contract
- Random bird base on this rare in smart contract
- Mint bird to player
- Install Metamask Extension to your browser
- Connect To Rinkeby network
RPC url: https://rinkeby.infura.io/v3/e0517a061de2466ba6b7569c29f02967
Network Id: 4
- Faucet some fake ETHs using chainlink faucet
- Game was deployed to my github page
- Lucky draw some birds
- Enjoy