private int Score = 0; /** * Act: move up and down when cursor keys are pressed. */ public void act() { checkKeyPress(); if(isTouching(Bacteria.class)) { setScore(getScore() + 20) { } } }
private int Score = 0; /** * Act: move up and down when cursor keys are pressed. */ public void act() { checkKeyPress(); if(isTouching(Bacteria.class)) { setScore(getScore() + 20) { } } }
private int Score = 0; public int getScore() { return Score; } /** * Act: move up and down when cursor keys are pressed. */ public void act() { checkKeyPress(); if(isTouching(Bacteria.class)) { setScore(getScore() + 20) { } } }