Package kku.cs.hero

Source Code of kku.cs.hero.MainGame

package kku.cs.hero;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;

import kku.cs.fgl.GameLoader;
import kku.cs.fgl.GamePane;

public class MainGame extends GameLoader {

  @Override
  public void initScenes(GameContainer screen, GamePane gamepane) {
    new Scene1(0);
  }
  @Override
  public Image getLogo() {
    try {
      return new Image("resource/logo.png");
    } catch (SlickException e) {
      e.printStackTrace();
    }
    return super.getLogo();
  }
  public static void main(String[] args) {
    new MainGame().showFrame();
  }
}
TOP

Related Classes of kku.cs.hero.MainGame

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.