Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int calculateScore(boolean gameOver, int score, int levelCompleted, int bonus) {
- if (gameOver) {
- int finalScore = score + (levelCompleted * bonus);
- finalScore += 2000;
- System.out.println("Your final score was " + finalScore);
- return finalScore;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement