← Back to home

Citrea Ninja

Citrea Ninja: slice Citrea tokens, dodge bombs, earn NFTs, verifiable wagers & scores.

Problem Statement

This is an on-chain, arcade-style slice game inspired by Fruit Ninja where players slice Citrea tokens while avoiding bombs and trap hearts. Slice a token to earn in-game points; miss a token or slice a bomb to lose a life. Every session’s final score is recorded on-chain, achievements mint as NFTs, and difficulty scales level-by-level with randomized token spawns. Players can compete solo, or enter head-to-head and group matches with optional wagers; the prize pool is paid out on-chain with a small fee taken only when prize money is withdrawn. A polished UI/UX ensures fluid slicing, tactile feedback, and clear on-chain transparency.Core gameplay and features:Token slicing and hazards: In-game points when sliced. Missing a token costs a heart. Slicing a bomb also costs a heart. Run out of hearts and the round ends.Level-wise difficulty: Progressive “K-level” challenges ramp spawn speed, object mix, fake-outs, and multi-slice requirements.On-chain score recording: End-of-round scores are finalized on-chain with a verification step to prevent cheating.NFT achievements: Milestones (streaks, perfect rounds, wager wins, seasonal ranks) mint as NFTs with dynamic metadata.Multiplayer modes: Quick duels, lobbies, and tournaments. Optional wagers use on-chain escrow; free play has no fees.Transparent fees: A small platform fee applies only on prize withdrawals; free mode and non-monetary sessions incur no fee.Leaderboards: leaderboards, rotating modifiers, and time-limited challenges to keep play fresh.

Solution

A) Chain and core architectureNetwork: Built on the Citrea EVM rollup for low-latency, low-fee transactions with Bitcoin-settled security. Contracts handle score finalization, rewards, achievements, wager escrow, and payouts.Trust model: Only final results are written on-chain to keep costs low while preserving fairness.B) Smart contractsGameRegistry: Creates round IDs, stores the randomness seed reference, and records final scores. Emits rich events for indexing. Uses minimal storage to reduce gas.

Hackathon

ETHGlobal New Delhi

2025

Contributors