package textureTest;
import dwarf.DwarfException;
import dwarf.Game;
import dwarf.gfx.Image;
import dwarf.util.Point2D;
import static dwarf.gfx.Colours.white;
public class textureTest {
public static void main(String[] args) {
new Game("picture test - Dwarf 2D") {
@Override
public void load() {
dwarf.gfx.background.setColour(white);
try {
super.addGameObject(new Image("./textureTest/pixelDwarf.jpeg", new Point2D(280, 250)));
} catch (DwarfException ex) {
ex.display().setVisible(true);
}
}
@Override
public void update() {
}
@Override
public void render() {
super.renderAllGameObjects();
}
};
}
}