src/Player.java
/**
     * Resets the player size and position for a new level
     */
Resets the player size and position for a new level
Resets the player size and position for a new level
public void reset(){
        y = 400;
        x = 100;
        energy = 100;
        sleeping = false;
        sleeptime = 0;
        bottleCount = 0;
        try{
            imageL = ImageIO.read(new File("images/blobL.png"));
            imageR = ImageIO.read(new File("images/blobR.png"));
        }catch(IOException e){
            System.err.println("Could not find Blob images!");
        }
    }
public void reset ( ) { y = 400 ; x = 100 ; energy = 100 ; sleeping = false ; sleeptime = 0 ; bottleCount = 0 ; try { imageL = ImageIO . read ( new File ( "images/blobL.png" ) ) ; imageR = ImageIO . read ( new File ( "images/blobR.png" ) ) ; } catch ( IOException e ) { System . err . println ( "Could not find Blob images!" ) ; } }
Resets the player size and position for a new level
Resets the player size and position for a new level