Navigation

    Colyseus
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. patrykmaron
    patrykmaron

    patrykmaron

    @patrykmaron

    Chat Follow Unfollow
    0
    Reputation
    4
    Posts
    1565
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Continue chat with patrykmaron
      • Flag Profile
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    patrykmaron Follow

    Posts made by patrykmaron

    RE: Lobby System

    Thanks for the awesome replies!

    I was wondering how are you declaring the "countdownInterval" ?

    Thanks :)

    posted in Questions & Help •
    RE: Lobby System

    Thanks thats all great, I got a grip of it!

    May I ask you about the clock timer and rendering a countdown?

    start(){
    // change the state to notify clients the game has been started
    this.state.started = true;

    if (this.state.started = true){
        // additionally, you may lock the room to prevent new clients from joining it
        this.lock()
        this.state.messages.push("COUNTDOWN SHALL BEGIN!");
    
        this.clock.currentTime = 10;
        this.clock.running = true;
        
        this.state.messages.push(`${ this.clock.currentTime.toString()}`)
    } 
    

    Im trying to have a countdown running and refresh on start(), however it only outputs me a "0"? any thoughts?

    posted in Questions & Help •
    Lobby System

    Hey guys

    I need a queue system where I collect for example 20 players, and when it's ready a timer starts and then sends those clients into a game state.

    Anyone done something similar?

    Also how do go about having "Rounds" that are 10 seconds long each, like an quiz game perhaps?

    Any insights be useful

    posted in Questions & Help •