mirror of
https://github.com/Klagarge/PokeHES.git
synced 2025-06-27 20:52:32 +00:00
avancée sur la base de donnée des attaques et discours
This commit is contained in:
42
src/Main/PokeMudry.java
Normal file
42
src/Main/PokeMudry.java
Normal file
@ -0,0 +1,42 @@
|
||||
package Main;
|
||||
|
||||
import Screen.ScreenPlayer;
|
||||
import ch.hevs.gdx2d.desktop.PortableApplication;
|
||||
import ch.hevs.gdx2d.lib.GdxGraphics;
|
||||
|
||||
public class PokeMudry extends PortableApplication {
|
||||
|
||||
private ScreenPlayer screenPlayer = new ScreenPlayer();
|
||||
|
||||
public static void main(String[] args) {
|
||||
new PokeMudry();
|
||||
}
|
||||
|
||||
PokeMudry(){
|
||||
super(Settings.SIDE, Settings.SIDE);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onInit() {
|
||||
screenPlayer.init();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onGraphicRender(GdxGraphics g) {
|
||||
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);
|
||||
}
|
||||
}
|
11
src/Main/Settings.java
Normal file
11
src/Main/Settings.java
Normal file
@ -0,0 +1,11 @@
|
||||
package Main;
|
||||
|
||||
public class Settings {
|
||||
|
||||
public final boolean ANDROID = false;
|
||||
public final int PLAYERS = 1;
|
||||
public static final int TIME = 10; // number of minutes for kill all enemy
|
||||
|
||||
public static final int SIDE = 800;
|
||||
|
||||
}
|
Reference in New Issue
Block a user