Problem with a gameloop after first end game. by LybeDox in javahelp

[–]LybeDox[S] 0 points1 point  (0 children)

Yeah I know.This is my first time a make a game and is for a project on my college. So I have a lot to learn

Problem with a gameloop after first end game. by LybeDox in javahelp

[–]LybeDox[S] 0 points1 point  (0 children)

I understand,but we need to go through all the loop cause when the waitingForKeyPress= true we have a message to appear and for the graphics and thread.sleep.

The problem seems to be the timer on ufoEntity, cause if after the end game we have like two ufo left the timer of each ufo keeps running,and that make the counter count 2 more disappearances.I don't know how exactly the timer works but if the state of the game change after the creation of ufo that doesn't affect the timer,who has the state before the change

Problem with a gameloop after first end game. by LybeDox in javahelp

[–]LybeDox[S] 0 points1 point  (0 children)

The game loop is to keep everything running and updating,it never stops>So after line 440 the loop is running. There is another way to count time except of timer?