Smart Contracts
Loot Survivor is built on Starknet using the Dojo engine, with all game logic executed fully onchain. The game's smart contracts handle everything from adventurer creation to combat resolution, ensuring transparency and verifiability.
Contract Architecture
The Loot Survivor smart contract system is organized into several core components:
- Game: Main game logic and state management
- Game Token: Interfaces for Embeddable Game Standard compatibility
- Beast: Creature stats, behavior, and combat mechanics
- Adventurer: Player character data and progression
- Loot: Item generation, properties, and bonuses
- Objectives: Quest and achievement system
- Renderer: Visual rendering and display logic
- Settings: Game configuration and parameters
Contract Addresses
Contract/Network | Sepolia | Mainnet |
---|---|---|
Game | ||
Game Token | ||
Beast | ||
Adventurer | ||
Loot | ||
Objectives | ||
Renderer | ||
Settings |
Development Resources
- GitHub Repository - Source code and documentation
- Dojo Engine - Framework powering the game
- Starknet Documentation - Layer 2 blockchain platform
Contract Interaction
Players interact with the smart contracts through:
- Game Interface: Main game client at lootsurvivor.io
- Direct Calls: Advanced users can call contract functions directly
- Block Explorers: View transactions and state on Starkscan or Voyager
All game actions are recorded onchain, providing complete transparency and allowing for independent verification of gameplay mechanics.