-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRPG.java
More file actions
46 lines (35 loc) · 1.09 KB
/
Copy pathRPG.java
File metadata and controls
46 lines (35 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package space.game.rpg;
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;
import org.newdawn.slick.tiled.TiledMap;
public class RPG extends BasicGame{
private TiledMap desertMap;
public static void main(String[] args) {
try {
AppGameContainer app = new AppGameContainer(new RPG("Unlicensed Expanse Game!"));
app.setDisplayMode(app.getScreenWidth(), app.getScreenHeight(), false);
app.setShowFPS(false);
app.start();
} catch (SlickException e) {
e.printStackTrace();
}
}
public RPG(String name) {
super(name);
}
@Override
public void render(GameContainer arg0, Graphics arg1) throws SlickException {
desertMap.render(0, 0);
}
@Override
public void init(GameContainer arg0) throws SlickException {
desertMap = new TiledMap("Maps/pelhamMap.tmx");
}
@Override
public void update(GameContainer arg0, int arg1) throws SlickException {
// TODO Auto-generated method stub
}
}