package game.actors;
import engine.geometry.Vector;
import engine.hierarchy.DefaultActor;
import game.habits.ButtonHabit;
public final class PlayButtonActor extends DefaultActor implements ButtonHabit.Listener {
@Override
public void onAdd() {
addHabit(new ButtonHabit(new Vector(64, 64), getStage().getLibrary().findImage("Play Button").getFrames(140),
this));
}
@Override
public void onButton(final ButtonHabit button) {
getStage().getLibrary().findMusic("Background Music").loop();
}
}