All Downloads are FREE. Search and download functionalities are using the official Maven repository.

engine.effects.FireballEffect Maven / Gradle / Ivy

package engine.effects;

import java.awt.Graphics;

import engine.core.MarioEffect;

public class FireballEffect extends MarioEffect {
    public FireballEffect(float x, float y) {
        super(x, y, 0, 0, 0, 0, 32, 8);
    }

    @Override
    public void render(Graphics og, float cameraX, float cameraY) {
        this.graphics.index = this.startingIndex + (8 - this.life);
        super.render(og, cameraX, cameraY);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy