Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
epoxy
GitHub Repository: epoxy/proj11
Path: blob/master/src/se/chalmers/projectBomberMan/StartBomberMan.java
1456 views
1
package se.chalmers.projectBomberMan;
2
3
import org.newdawn.slick.AppGameContainer;
4
import org.newdawn.slick.GameContainer;
5
import org.newdawn.slick.SlickException;
6
import org.newdawn.slick.state.StateBasedGame;
7
8
public class StartBomberMan extends StateBasedGame {
9
10
public static final int GAMEPLAYSTATE = 1;
11
12
public StartBomberMan() {
13
super("BombSquad");
14
this.addState(new GamePlayState(GAMEPLAYSTATE));
15
this.enterState(GAMEPLAYSTATE);
16
// TODO Auto-generated constructor stub
17
}
18
19
@Override
20
public void initStatesList(GameContainer container) throws SlickException {
21
this.getState(GAMEPLAYSTATE).init(container, this);
22
}
23
24
public static void main(String[] args) throws SlickException {
25
AppGameContainer app = new AppGameContainer(new StartBomberMan());
26
app.setTitle("BombSquad");
27
app.start();
28
}
29
30
}
31
32