import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class level1 here. * * @author (your name) * @version (a version number or a date) */ public class level1 extends World { private int score = 0; private int lives = 5; /** * Constructor for objects of class level1. * */ public level1() { // Create a new world with 600x400 cells with a cell size of 1x1 pixels. super(600, 400, 1); addObject(new Shark(),115,314); addObject(new Fish3(),494,237); addObject(new Fish3(),480,81); addObject(new Fish3(),119,93); addObject(new Fish3(),313,181); addObject(new Fish3(),395,324); addObject(new Fish3(),323,71); addObject(new StatusBoard(),40,385); StatusBoard.updateStatus(score,lives); } public void increaseScore (int points) { score += points; StatusBoard.updateStatus(score,lives); } //public void increaseScore(int points){ } public int getScore () { return score; } public void loseLife () { lives = lives - 1; } public int getLives() { return lives; }}