And I'm back! This time... I'm in need of making a score board, that increments the score of the player after set intervals of time. I am planning on how to do this: here's the pseudo code of how I think to do it (getting practise for the exam)... but how to convert into real java?
STRING score = "(integer) i" ;
INTEGER i = 0;
INTEGER frame = 0;
METHOD drawScore {
IMG scoreBoard = new Image (dimensions,dimensions);
scoreBoard.drawString(score, 0, 0);
}
METHOD incrementScore {
frame = frame + 1;
IF (frame % 20 = 0) {
i = i+1;
}