1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-10-30 19:29:17 +00:00

finish implement screen

This commit is contained in:
Fastium
2022-06-08 18:47:33 +02:00
parent d522fff056
commit 07e104fa88
10 changed files with 47 additions and 22 deletions

View File

@@ -1,26 +1,44 @@
import Screen.ScreenPlayer;
import ch.hevs.gdx2d.desktop.PortableApplication;
import ch.hevs.gdx2d.lib.GdxGraphics;
public class PokeMudry extends PortableApplication{
public class PokeMudry extends PortableApplication {
public final boolean ANDROID = false;
public final int PLAYERS = 1;
public static final int TIME = 10; // number of minutes for kill all enemy
/*
private ScreenPlayer screenPlayer = new ScreenPlayer();
public static void main(String[] args) {
new PokeMudry();
}
*/
PokeMudry(){
super(1000, 800);
}
@Override
public void onInit() {
// TODO Auto-generated method stub
screenPlayer.init();
}
@Override
public void onGraphicRender(GdxGraphics g) {
// TODO Auto-generated method stub
screenPlayer.render(g);
}
//key gestion
@Override
public void onKeyDown(int keycode) {
screenPlayer.screenManager.getActiveScreen().onKeyDown(keycode);
super.onKeyDown(keycode);
}
@Override
public void onKeyUp(int keycode) {
screenPlayer.screenManager.getActiveScreen().onKeyUp(keycode);
super.onKeyUp(keycode);
}
}