Dungeon crawler: stake to play, collect keys, unlock rooms, defeat boss, win tokens.
Our game is called DungeonHeim. A user stakes 1 usdc to start the game session. Player needs to explore a procedurally generated dungeon where every run is unique. Navigate using arrow keys and attack with the spacebar, their vision is limited to a 4x4 grid. Player needs to slay slimes to gain speed, vision boosts, or keys needed to access higher-tier rooms: Normal, Gold, and Boss. Each key is one-time use, and defeating Gold Room enemies is the only path to the Boss Room. The final challenge before earning 1inch tokens is a powerful boss whose health scales with the real-time Ethereum gas price.
Frontend is written in TypeScript with Next framework, backend consists of Solidity smart contracts which uses 1inch aggregation router v6.
We are also using 1inch API calls. We used 1inch Swap API: If player win the game they will be rewarded with 1inch tokens. We call the 1inch classic Swap API from the frontend, and pass this call data to the smart contract for swapping the USDC to 1inch tokens. We also used 1inch Gas Price API: the boss health is dynamically generated according to the ethereum gas price, the higher the gas price, the more health the boss has.
The game itself is built with PhaserJS.
https://www.canva.com/design/DAGvBSootwY/zvDG8VkTrNkH2pMb1rFuXw/edit?utm_content=DAGvBSootwY&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton