Files
epfl-archive/Permafrost/src/platform/game/actor/Background.java
2022-04-07 18:43:21 +02:00

28 lines
450 B
Java

package platform.game.actor;
import platform.util.Box;
import platform.util.Input;
import platform.util.Output;
public class Background extends Actor {
private Box box;
private String skin;
public Background(Box box, String skin){
setPriority(-1);
this.box = box;
this.skin = skin;
}
public void draw(Input input, Output output){
output.drawSprite(getSprite(skin), getBox(), 0, 0.9);
}
public Box getBox(){
return box;
}
}