Timer based games

Game development with Board Game Arena Studio
Post Reply
User avatar
Victoria_La
Posts: 620
Joined: 28 December 2015, 20:55

Timer based games

Post by Victoria_La »

Lets say I have a game where real timer should be used for all players. What what would best way to implement that?
Basically I need to
a) disable turn-based games for this game
b) tap in timer API some-how to set global timer and get alarm when expired, and not in UI code, notification must come from server
User avatar
marcgenesis
Posts: 36
Joined: 27 August 2015, 01:53

Re: Timer based games

Post by marcgenesis »

What is your use case? Does the timer limit something, or is it used to know who played first in a multiactive state?
User avatar
Victoria_La
Posts: 620
Joined: 28 December 2015, 20:55

Re: Timer based games

Post by Victoria_La »

After first player moved, rest of players gets 30 seconds to make counter-move.
It is global multiplayer state for remaining players.
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: Timer based games

Post by sourisdudesert »

If this is part of the rule, you have to disable turn based.

Otherwise, you'll have to agree with the publisher to do a custom rule for turn based :/
User avatar
Victoria_La
Posts: 620
Joined: 28 December 2015, 20:55

Re: Timer based games

Post by Victoria_La »

Well I still don't understand HOW to do that.
User avatar
Rudolf
Posts: 557
Joined: 24 December 2011, 23:04

Re: Timer based games

Post by Rudolf »

Do you know how to manage an "event" timer in php? (if not, begin by this, but it's better to look on the net... it's not simple to explain here)
by the way...
You will have problem with players with a 30 seconds based time... because there are many lags often on this site... I already faced the problem.
User avatar
Een
Posts: 3854
Joined: 16 June 2010, 19:52

Re: Timer based games

Post by Een »

Victoria_La wrote:Well I still don't understand HOW to do that.
Hi,
This is a flag we can set for the game on the main site.
Just remind us about it before release :)
User avatar
Victoria_La
Posts: 620
Joined: 28 December 2015, 20:55

Re: Timer based games

Post by Victoria_La »

Ok Thanks. I am not sure if I will implement this game I just wanted to know what is involved and if this possible in principle.
Looks like there is no framework support to get ahold of global table times and I just have to use language (php) structures for this.
And there is some admin way to turn off turn based games which is all what I need to think about it :)
User avatar
LaszloK
Posts: 36
Joined: 05 January 2018, 19:00

Re: Timer based games

Post by LaszloK »

Sorry for the necromancy, but is there a definitive answer to what exactly could be used in case something like this was needed? Specifically, is EvTimer supported, or should I google further? :)

(Out of the games currently available for development, Escape is one example where something like this would be needed, although I'm asking with something else in mind.)
Post Reply

Return to “Developers”