Thanks for the awesome replies!
I was wondering how are you declaring the "countdownInterval" ?
Thanks :)
Thanks for the awesome replies!
I was wondering how are you declaring the "countdownInterval" ?
Thanks :)
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?
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