Package Ocarina2D.Objects

Source Code of Ocarina2D.Objects.DekuNut

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package Ocarina2D.Objects;

import puppyeyes.engine.Actor;
import puppyeyes.engine.Sprite;

/**
*
* @author majora
*/
public class DekuNut extends Actor {
    public int timer = 10;

    public DekuNut() {
        super("Deku Nut");
        addFrame(new Sprite("Resources/Sprites/player/dekunut/nut.png"));

        draw.setVisible(true);
    }
   
   
    @Override
    public void step() {
        timer--;
        if (timer==0) { this.destroy(); }
    }



}
TOP

Related Classes of Ocarina2D.Objects.DekuNut

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.