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

add xp and pv on display

This commit is contained in:
Fastium
2022-06-16 15:46:34 +02:00
parent a5c3c8bac5
commit cad32fde7d
10 changed files with 42 additions and 9 deletions

View File

@@ -15,6 +15,7 @@ public class Player extends Character{
private int xp = 0;
public Enemy lastEnemy = null;
public boolean onEnemy = false;
private static final int XP_MAX = 6000;
public Player(int x, int y, String map) {
super("Player", x, y, "Character_flipped", map);
@@ -119,4 +120,8 @@ public class Player extends Character{
// TODO Auto-generated method stub
}
public int getXpMax(){
return XP_MAX;
}
}