Odd i was following up with the while loop.
public void gameloop(){
long startTime = System.currentTimeMillis();
long runTime = startTime;
refresh();
s.update();
while(running){...
Type: Posts; User: Zilender
Odd i was following up with the while loop.
public void gameloop(){
long startTime = System.currentTimeMillis();
long runTime = startTime;
refresh();
s.update();
while(running){...
public void stop(){
running = false;
System.out.println(running);
}
it will print false
When i put a system.out.pr in they key press ESCAPE it prints it, but it doesn't execute the stop(): properly. It should change the Boolean running to false and end the gameloop, then going to...
It never gets past the gameloop
I'm new to java and have NO idea why this won't work :S. I think its the Boolean but I'm not sure why.
public abstract class Core {
public int[] player = null;{
player = new int[5];...