1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-07-07 17:01:10 +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

@ -8,13 +8,13 @@ public class Enemy extends Character{
public Enemy(String name, int x, int y, String img, String map, int pv, String branch) {
public Enemy(String name, int x, int y, String img, String map, int pv, String branch, Character.Direction dir) {
super(name, x, y, img, map);
//generate his text
this.map = map;
turn(Character.Direction.DOWN);
turn(dir);
this.branch = branch;