1
0
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:
Fastium
2022-06-08 23:30:15 +02:00
parent 1a84524e14
commit aaeb151c43
14 changed files with 226 additions and 28 deletions

42
src/Main/PokeMudry.java Normal file
View 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
View 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;
}