1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-10-31 03:39:16 +00:00

finish to add enemy

This commit is contained in:
2022-06-15 16:49:33 +02:00
parent 62ebdf6248
commit 907ae78eec
6 changed files with 22 additions and 11 deletions

View File

@@ -2,6 +2,7 @@ package Screen;
import Entity.Enemy;
import Entity.Player;
import Entity.Character.Direction;
import Game.Battle;
import ch.hevs.gdx2d.lib.GdxGraphics;
@@ -19,7 +20,7 @@ public class ScreenPlayer {
//p = new Player(8, 15, "desert");
p = new Player(4, 2, "21RI");
b = new Battle(new Enemy("enemi", 0, 0, "lumberjack_sheet32", "desert", 50, "enemi"));
b = new Battle(new Enemy("enemy", 0, 0, "lumberjack_sheet32", "desert", 50, "enemy",Direction.NULL));
// Create both type of screen and record for reuse
screenManager.registerScreen(ScreenMap.class);