Peer2Play Whitepaper
  • 📜Introduction
  • ⛔Problem Statement
  • đŸ› ī¸Solution
  • đŸŽ¯Mission and Vision
  • ⚡Key Features
    • Game Tokenization
    • Games
      • âœ‚ī¸Punk Paper(LIVE)
      • 🏏Decentralized Cricket League (DCL)(Coming soon)
      • đŸ‹ī¸Fight Game(Coming Soon)
      • đŸ•šī¸Upcoming Games
    • Developer On-Boarding
    • Player-Driven Ecosystem
    • Transparent Revenue Sharing
    • Blockchain-Powered Tournaments
    • Tokenized Economy
    • AI Agents
    • Cross-Chain Integration
    • Governance and Incentives
      • GameDAO
      • Incentives
    • Co-Ownership Model
      • Tokenized Games
      • Buybacks and Burns
  • 🧩Use cases
  • đŸ’ĢGetting started
    • Game Developers
    • Influencers
    • Gamers
  • 👨‍đŸ’ģTechnical Architecture
    • MPC Wallet
    • Smart contract Architecture
      • Peer2PlayGenericStakingContract
        • Chess
        • Poker
        • Ludo
      • Peer2PlayGenericNonStakingContract
        • 1. Role-Playing Game (RPG)
        • 2. City-Building Game
        • 3. Farming Simulations
      • Tokenization & Revenue distribution
    • SDKs & APIs
  • 🔐Compliance & Security
  • ❓FAQ & Troubleshooting
  • 🤝Connect with Peer2Play
Powered by GitBook
On this page
  1. Technical Architecture
  2. Smart contract Architecture
  3. Peer2PlayGenericNonStakingContract

2. City-Building Game

Ex : SimCityChain

Game Flow:

  1. Add the Game:

    • Admin calls addGame("SimCityChain", gameOwner, "ipfsHash", 300) to register the game with a 3% fee.

  2. Register Player:

    • Player calls registerOnGame(gameId) to join the city simulation.

    • On-chain: Player registration details.

  3. Token Deployment:

    • Game owner deploys an ERC1155 contract using deployTokenContract(gameId, "ERC1155", "CityAssets", "CITY").

  4. Gameplay:

    • Player builds a house and receives an ERC1155 token (e.g., "House Type A").

    • On-chain: ERC1155 token balance for the player.

    • IPFS: Metadata for the house type (size, resources, image).

On-Chain Data:

  • Player registrations, token balances. IPFS Data:

  • Building metadata (types, resources, appearance).

Previous1. Role-Playing Game (RPG)Next3. Farming Simulations

Last updated 4 months ago

👨‍đŸ’ģ