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