I am trying to make a countdown timer for my game, and I am not sure what to do. Here is my code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | private int time; public Level1() { super ( 650 , 450 , 1 ); time = 6000 ; point = 0 ; prepare(); } private void act() { time--; showTime(); } private void showTime() { showText( "Time: " + time/ 100 , 50 , 50 ); } |