Tagged Questions
7
votes
2answers
528 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 ...
1
vote
1answer
77 views
Can't call method out of a timer. Why? [closed]
I have another problem i can't solve by myselve.
My situation:
I have four FrameLayouts in LinearLayouts.
I color them, set Layout hight and width at wrap content and just change the minwidth to ...
-1
votes
1answer
327 views
Animation Trouble with Java Swing Timer - Also, JFrame Will Not Exit_On_Close [closed]
So, I am using a Java Swing Timer because putting the animation code in a run() method of a Thread subclass caused an insane amount of flickering that is really a terrible experience for any video ...
1
vote
3answers
361 views
Will having many timers affect my game performance?
I'm making a game for android, and earlier today I was trying to add some cool stuff to my game. The problem is this thing needs like 5 timers. I build my timers like this:
timer += deltaTime;
...
4
votes
1answer
237 views
Android Java: Way to effectively pause system time while debugging?
In my project, I call nanoTime and use that to get a deltaTime which I pass to my entities and animations.
However, while debugging (for example, stepping through my code), the system time on my ...
7
votes
3answers
720 views
Effective methods to continuously update movement in a tower defense game?
We are four guys making a Tower Defense game as a project in first grade on a university. The game is going to be really simple!
Three different towers
Three different monsters
One map (maybe add ...