package com.apocriva.tutorials;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
public class TutGame extends BasicGame {
public TutGame() {
super("Tutorial Game");
}
@Override
public void render(GameContainer container, Graphics g)
throws SlickException {
g.drawString("Hello, tutorial!", 0, 0);
}
@Override
public void init(GameContainer container) throws SlickException {
}
@Override
public void update(GameContainer container, int delta)
throws SlickException {
}
public static void main(String[] args) {
try {
AppGameContainer app = new AppGameContainer(new TutGame());
app.start();
}
catch(SlickException e) {
e.printStackTrace();
}
}
}