🔮
Impulse DAO
DiscordTwitter
  • 👋Get started
  • Overview
    • 💡Introduction
      • What?
    • 🛠️Community
      • 📝Roles
      • 🛤️Rituals
    • ✨Governance
  • games for developers
    • 🏟️Arena
      • 📗Arena almanac
      • 🦀Vara-Arena
        • ⚔️Introduction
        • 💡Step-by-step guide
        • 📜Creating an algorithm
        • 🏰Creating a Lobby
        • 🤼Lobby results
        • ⬆️LevelUp
        • 🏆Leaderboard and prize distribution
      • 🤝Update priorities
        • ▶️Playtesting
Powered by GitBook
On this page
  1. games for developers

Arena

Arena is the first game for developers made by Impulse DAO. Learn Web3 Rust, Playtest, and Contribute.

PreviousGovernanceNextArena almanac

Last updated 1 year ago

Arena v0.2 dApp architecture

Mint contract features

  • Create a character with base stats and a name

  • Store a character's state and modify it based on the in-game events

  • Communicate with React app through meta.wasm file

  • Increase XP based on the Tournament results

  • Consume XP & add a new attribute for leveling up the character

Arena contract functionality

  • Create & execute tournaments

  • Validate in-game physics

  • Send instructions to Mint contract based on the Tournament outcome

React web application functionality

  • Uploading WASM code instances (strategies) to Vara

  • Creating Gladiators via Mint message to Mint contract

    • Gladiators are on-chain actors - Programs created using the uploaded strategy CodeId & parameters stored in the Mint contract

  • Get Mint contract’s state using CharacterInfo

  • Sending Register messages to Arena contract

  • Starting the Tournament by sending ReserveGas and Play

  • Displaying the Tournament results for Tournament pages viewers

  • Sending LevelUp from MyProfile page

  • Leaderboard

Step 0: Learning base Arena concepts

Arena almanac

Vara-Arena

Step 1: Create a gladiator

Creating an algorithm

Step 2: Sign up for a Tournament

Creating a Lobby

Step 3: View log & upgrade your character

Lobby results

🏟️
Arena v0.2 scheme