ChainArena — NFT-Style Hero Battler Game (SwiftUI, iOS 17+)
ChainArena is a modern, cyberpunk-styled turn-based PvP battle game prototype built entirely in SwiftUI for iOS 17+. It combines NFT-style hero mechanics, a marketplace system, staking, and seasonal progression into a clean, scalable architecture.
Designed for developers who want to build the next generation of Web3-style games or gamified apps, ChainArena provides a strong foundation with polished UI, battle logic, and extensible systems.
⚔️ Core Features
- Turn-Based Battle System – full combat loop with enemy AI, cooldowns, crit, dodge, and rewards
- NFT-Style Heroes – multiple classes, rarity tiers, stats, abilities, and leveling
- Matchmaking System – simulated opponent search and battle flow
- Ability System – skills with cooldowns, damage, buffs, and effects
- XP & Reward System – gain tokens and experience after battles
Hero System
- 6 hero classes (Assassin, Mage, Tank, Ranger, etc.)
- 5 rarity tiers: Common → Legendary
- Unique stats: Attack, Defense, HP, Crit, Dodge, Speed
- Upgradeable heroes with progression system
- Ability-based combat (e.g. Shadow Strike, Smoke Bomb, Execute)
Marketplace System
- Browse, filter, and sort heroes
- Instant buy system
- List your heroes for sale
- Token-based economy (mocked)
- Clean UI ready for real backend integration
Staking & Economy
- Stake heroes for passive token rewards
- Simulated Web3 economy
- Ready to connect to real blockchain services
Seasons & Progression
- Season-based ranking system
- Leagues and rewards UI
- Player progression tracking
Design & UX
- Modern cyberpunk UI design system
- Glow effects, gradients, particles, animations
- Smooth transitions and battle feedback
- Haptic feedback & sound system
- Fully built with SwiftUI (no UIKit)
Screens Included
- Splash Screen
- Main Menu
- Hero Selection & Minting
- Battle Flow (Search → Fight → Result)
- Marketplace
- Staking
- Seasons
- Profile & Leaderboard
⚙️ Technical Details
- Language: Swift 5.9+
- Framework: SwiftUI
- Minimum iOS: iOS 17+
- Architecture: MVVM
- Data: In-memory (easy to replace with CoreData / SwiftData / backend)
- Blockchain: Mock service (ready for Web3 integration)
Architecture Overview
- GameViewModel – global app state
- BattleViewModel – battle loop, AI, matchmaking
- MarketplaceViewModel – marketplace logic
- Design System (DS) – centralized styling & effects
The codebase is clean, modular, and scalable — ideal for extending into a real production game or integrating with blockchain services.
Perfect For
- Game developers building mobile PvP games
- Startups exploring Web3 / NFT gaming concepts
- Developers learning SwiftUI architecture
- Anyone building a gamified marketplace app
⚠️ Important Notes
- This is a prototype/demo (no real multiplayer backend yet)
- Blockchain integration is mocked (no real transactions)
- Easy to extend with real backend, WebSocket multiplayer, or smart contracts
What You Get
- Full Xcode project
- Clean SwiftUI codebase
- Battle system logic
- Marketplace & staking UI
- Reusable design system
Based on a modern SwiftUI architecture with advanced UI/UX and scalable systems. Ready to launch, customize, and expand.