Package raiding.main

Source Code of raiding.main.Start

package raiding.main;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

import raiding.state.PlayState;

public class Start extends StateBasedGame {

  public static final int PLAYSTATE = 0;

  public Start() {
    super("Mult");
  }
 
  public static void main(String[] args) throws SlickException {
    AppGameContainer app = new AppGameContainer(new Start());

    app.setDisplayMode(760, 600, false);
    app.setAlwaysRender(true);
    app.setTargetFrameRate(100);
    //app.setVSync(true);
    app.start();
  }
 
  @Override
  public void initStatesList(GameContainer gameContainer) throws SlickException {
    this.addState(new PlayState(PLAYSTATE));
  }   
}
TOP

Related Classes of raiding.main.Start

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.