Tetris Mobile, play on the go
TetraMON is a mobile-first, on-chain Tetris-style game built on the Monad testnet, combining classic gameplay with the latest Smart Account technology.
Designed the concept TetraMON: a fast-paced Tetris game where player scores are stored on-chain. Set up Next.js 14 frontend with a custom game loop, grid physics, and explosion animations. Initialized Monad testnet environment and deployed the TETRA_SCORE smart contract using Solidity. Integrated viem + permissionless (Pimlico) SDK to support Account Abstraction (Smart Account). Built sendScoreToChain() to push scores to blockchain in a gasless way using Pimlico paymaster. Added fallback to EOA mode with private key signer to ensure reliability even without delegation SDK. Created real-time score saving feedback (success/failure alert). Implemented local high-score cache + chain sync check. Deployed live on Vercel integrated with testnet RPC endpoints. Fixed build compatibility issues (Next.js type errors, Pimlico integration). Added console-based smart account status logs for transparency. Improved UI/UX and responsive design for mobile play. ✅ Outcome Players can now play Tetris, get real scores saved on-chain via Monad, and see their gameplay stored immutably. The project demonstrates how Account Abstraction and gasless transactions can make on-chain gaming seamless and fun.
0