-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainEstados.java
41 lines (33 loc) · 1.1 KB
/
MainEstados.java
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
package FightKnights.Logic;
import org.newdawn.slick.*;
import org.newdawn.slick.state.StateBasedGame;
/**
*
* @author hp
*/
public class MainEstados extends StateBasedGame {
private AppGameContainer contenedor;
private Sound musica;
public static void main(String[] args) {
try {
MainEstados juego = new MainEstados("");
} catch (SlickException slick) {
}
}
public MainEstados(String name) throws SlickException {
super("Fight Knights");
contenedor = new AppGameContainer(this);
contenedor.setDisplayMode(1280, 720, false);
contenedor.setShowFPS(true);
//contenedor.setFullscreen(true);
contenedor.start();
}
@Override
public void initStatesList(GameContainer container) throws SlickException {
this.addState(new PantallaCarga());
this.addState(new Menu());
this.addState(new PantallaJuego());
this.addState(new VictoryScreen());
this.addState(new PantallaPausa());
}
}