Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
epoxy
GitHub Repository: epoxy/proj11
Path: blob/master/src/se/chalmers/projectBomberMan/GamePlayState.java
1456 views
1
package se.chalmers.projectBomberMan;
2
3
import org.newdawn.slick.GameContainer;
4
import org.newdawn.slick.Graphics;
5
import org.newdawn.slick.SlickException;
6
import org.newdawn.slick.state.BasicGameState;
7
import org.newdawn.slick.state.StateBasedGame;
8
import org.newdawn.slick.tiled.TiledMap;
9
10
public class GamePlayState extends BasicGameState {
11
int stateID = -1;
12
//private TiledMap map;
13
14
public GamePlayState(int stateID) {
15
this.stateID = stateID;
16
}
17
18
@Override
19
public void init(GameContainer arg0, StateBasedGame arg1)
20
throws SlickException {
21
//map = new TiledMap("lib/TileBoard.tmx");
22
23
}
24
25
@Override
26
public void render(GameContainer arg0, StateBasedGame arg1, Graphics arg2)
27
throws SlickException {
28
//map.render(0, 0);
29
30
}
31
32
@Override
33
public void update(GameContainer arg0, StateBasedGame arg1, int arg2)
34
throws SlickException {
35
// TODO Auto-generated method stub
36
37
}
38
39
@Override
40
public int getID() {
41
return stateID;
42
}
43
}
44
45