Package com.apocriva.tutorials

Source Code of com.apocriva.tutorials.TutGame

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();
    }
  }

}
TOP

Related Classes of com.apocriva.tutorials.TutGame

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.