WebCity
  • WebCity
  • What is WebCity
    • FAQ
    • Roadmap
    • Algorithm
    • Features
  • Documentation
    • How to Use
    • Getting Started
      • How to Play?
      • Stage 2
      • Stage 3
      • Local Installation
    • Dashboard
      • Balances
      • Chart
      • Account
    • Plugins
    • Make a WebCity Clone
      • Battle Loop
      • Game Loop
        • Tutorial
  • About Us
    • Where to Go (Links)
Powered by GitBook
On this page
  1. Documentation
  2. Make a WebCity Clone

Game Loop

PreviousBattle LoopNextTutorial

Last updated 1 year ago

graph LR
    subgraph AnonymousUser
        Anon
    end
    style AnonymousUser fill:#ffeeff

    subgraph AuthenticatedUser
        
        subgraph Role
            
            Guest((Guest)) -->|Create Acc.| Player("Player")
            Guest -->|Click Start| Observer
            Player -->|Check Logs| Synced
            Synced -->|Click Start| Observer
            
        end
        Observer -->|Send Buy Order| Agent{Agent}

    end
    subgraph Game
        AgentUser((Agent)) -->Sell{Sell}

        Sell --> Profit    
        Sell --> Loss

        Profit --> |Iterate| Streak("Daily
        Profit Streak
        Proof")
    end

    Anon["Connect"] -->|Google| AuthenticatedUser

    AuthenticatedUser -->|Iterate| Simulation
    AuthenticatedUser -->|Iterate| Game

    subgraph Simulation
        subgraph Practice
            agent --- sell{sell}
            sell -->|profit| score
            sell -->|loss| redeem("redeem
            loss")
        end
        Practice --> Minigames
        style Minigames fill:#ffddcc
    end

    style Game fill:#f0faf0
    style Simulation fill:#d0fad0
    style Role fill:#fffaff
    style Streak fill:#ddffdd
    style Profit fill:#aaffaa