1
vote
1answer
85 views

Fire Delay Timers

I currently have a turret that can fire projectiles. I can control the delay between shots (fireDelay), and I can control the time needed to reload the magazine of the gun(reloadDelay). I do the ...
0
votes
1answer
425 views

Java High-Resolution Timer for a simple game

I want to work on a model of some kind of simple shape shooter game I would develop for either the desktop or the Android, using the libGDX library. There's something I want to incorporate into the ...
7
votes
3answers
740 views

How to make something happen every N seconds in game?

I want to have something happen every N seconds, how would I do that? Maybe use a timer but how?
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 ...
4
votes
2answers
438 views

Checkpoints in a racing game?

The game would be a race from A to B through several checkpoints. I think there are two approaches for the concept of time. The game starts with some time and player has to make it to the finish ...