Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. patrykmaron
  3. Posts
  • Profile
  • More
    • Continue chat with patrykmaron
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

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 • 12 Feb 2018, 19:37
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 • 9 Feb 2018, 11:44
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 • 8 Feb 2018, 13:58

© 2023 Endel Dreyer