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:
		| @@ -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); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user