EVS
EVS: An endless 2D runner game, sprinting through blockchain-themed obstacles to earn rewards
Problem Statement
This combines the fun of subway surfer but on-chain and allowing ethmaxis to earn and play. You will be playing as Vitalik (sounds fun), and will be running a certain distance calculated from the amount locked by the user before starting the run. You will be awarded 2x of the amount you locked. The funds for this would be coming from the users who lost the race. You can later bridge the tokens form Flow to any EVM or non-EVM chain and use it as liquidity for your DeFi applications.
Solution
For the EVS project – an endless 2D runner game rewarding Ethereum maximalists with on-chain ETH tokens and NFTs – we developed the backend using Solidity smart contracts. These handle core mechanics like reward minting, high-score verification via oracles, and DeFi integrations for staking earned tokens. We deployed them on Flow EVM Testnet for its low-cost, EVM-compatible environment, enabling seamless testing with tools like Hardhat for compilation and deployment scripts.On the frontend, we leveraged Next.js as the React framework to build a responsive, SEO-friendly web app. It manages user authentication via wallets (e.g., MetaMask), dynamic routing for game modes, and server-side rendering for non-game pages, ensuring fast load times and easy scalability.The game itself was built with Kaplay.js, a lightweight JavaScript library for 2D games, integrated as a client-side component in Next.js. This choice kept performance high with efficient canvas rendering, asset loading, and physics, allowing smooth endless running mechanics without heavy dependencies. We tested cross-browser compatibility and optimized for mobile play, with Web3.js handling on-chain interactions like submitting scores to trigger rewards. This stack combines blockchain security with engaging gameplay, paving the way for mainnet deployment.
Hackathon
ETHGlobal New Delhi
2025
Contributors
- devaniketh
6 contributions
- skarwuuu
3 contributions
- rajdeep-singha
2 contributions
- jny0444
1 contributions