Disabled external gits
This commit is contained in:
27
Permafrost/src/platform/game/actor/Background.java
Normal file
27
Permafrost/src/platform/game/actor/Background.java
Normal file
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user