The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
2answers
273 views

Game resource timers - general implementation

I'm interested in understanding how resource generation timers work on many of the mmorts type games out there. I can't wrap my head exactly around how the timers are synched with servers, especially ...
5
votes
3answers
1k views

Thread runs faster on a faster processor… how to control Thread speed

I have a thread that uses TimeUnit.MILLISECONDS.sleep(5); Problem is when I load my app on a faster phone say with a snapdragon, it runs at lightning speed. Is there a way to control this speed so ...
8
votes
2answers
2k views

Java 2D game programming: Different approaches to make a game loop

I am new to Java game programming, but the more I read the more I'm confused, because I've seen several different approaches to make a game loop: 1. The standard approach, that uses the Timer class ...
3
votes
3answers
1k views

Will running cron jobs every minute a good practice?

I'm trying to create a browser-based game (made in PHP, MySQL, Js, HTML, and CSS) that is heavily dependent on user's actions being carried out after a certain amount of time passed whether online or ...
2
votes
1answer
131 views

Timestamps as ids in an entity manager?

I've built my own entity manager, as I found out some days ago, it is very similar to the Artemis framework. For now, I just use integers as entity ids. Behind the scenes, there is a simple integer ...
1
vote
1answer
188 views

What tech will enable a script to run after a certain amount of time elapsed following a user's action?

I'm trying to experiment in creating an MMO browser-based game using PHP, MySQL, Javascript, HTML5, and CSS. There is this certain functionality that I want in my game that I'm having trouble with. ...
0
votes
2answers
528 views

Using System Time to compute delay times that correctly deal with app pauses?

In my Android app I have the requirement to introduce small (for slowing down animation) and larger delays (for the purpose of delaying the appearance of a character for example). I've experimented ...
-1
votes
2answers
230 views

Start timer in two clients the same time

I want to create a client/server turned-based game where each player will have 5 seconds in order to play. If extends this time will be other player's turn to play. In order to do this, I have created ...
-1
votes
3answers
534 views

How to rotate to a target position over time

I know how to do rotations to vectors, but how do I rotate over time? For instance say I made a function RotateTo(vec2 iPosition, float iTime); so it rotates to iPosition over iTime - how would ...