Gemini said Sure! Here is the updated project documentation in English. Since you're working on AnveshakAI and have a strong interest in System Design, I've kept the tone professional yet tech-focused.
Flying Ninja Flying Ninja is a 2D side-scroller game where players interact with the flying ninja character using their keyboard's spacebar to move the ninja character up and down. The goal is to avoid obstacles and earn points for each dodge. When the game ends, the user can add their score to a decentralized leaderboard.
Deploying from ICP Ninja When viewing this project in ICP Ninja, you can deploy it directly to the mainnet for free by clicking "Run" in the upper right corner.
Inspiration The inspiration comes from the simplicity of classic 2D arcade games like Flappy Bird, combined with the power of the Internet Computer (ICP). We wanted to demonstrate how a simple gaming loop could be enhanced by a decentralized, tamper-proof leaderboard.
What it does Gameplay: A fast-paced side-scroller where the player controls a Ninja using the Spacebar.
Scoring: Points are awarded for every obstacle successfully navigated.
On-Chain Leaderboard: Upon game over, players can submit their high scores directly to an ICP canister, ensuring the rankings are transparent and immutable.
How we built it Frontend: Built using HTML5 Canvas and JavaScript for smooth animations and collision detection.
Smart Contracts (Canisters): Developed using Motoko/Rust to handle score storage and retrieval from the blockchain.
Tooling: Leveraged the IC SDK (dfx) and ICP Ninja for seamless deployment and testing on the mainnet.
Challenges we ran into One of the primary challenges was managing the asynchronous nature of blockchain calls while maintaining a high-speed gaming interface. Ensuring that the score submission didn't interrupt the user flow required careful state management. We also had to optimize the game physics to feel responsive across different browsers.
Accomplishments that we're proud of Successfully deploying a fully functional game to the ICP Mainnet.
Implementing a zero-gas fee experience for the player (thanks to ICP’s reverse gas model).
Creating a clean, minimalist UI that focuses purely on the gameplay loop.
What we learned We gained deep insights into Canister development and how to host frontend assets directly on the blockchain. We also learned how to bridge traditional web game logic with decentralized backend architecture, proving that Web3 gaming can be as smooth as Web2.
What's next for Flying Ninja NFT Skins: Allow players to customize their Ninja with unique NFT-based skins.
Global Tournaments: Hosted competitive events with rewards distributed automatically via smart contracts.
Mobile Optimization: Adding touch-screen support for mobile browsers.
Built With
- apis
- mainet
- nft
Log in or sign up for Devpost to join the conversation.