mirror of
				https://github.com/Klagarge/PokeHES.git
				synced 2025-10-31 11:39:17 +00:00 
			
		
		
		
	enemy integration done, but big bug when move
This commit is contained in:
		| @@ -5,16 +5,14 @@ import com.badlogic.gdx.math.Vector2; | ||||
| import Text.TextEnemy; | ||||
|  | ||||
| public class Enemy extends Character{ | ||||
|     private String map; | ||||
|  | ||||
|     public TextEnemy textEnemy; | ||||
|  | ||||
|     public Enemy(String name, int x, int y, String img, String map) { | ||||
|         super(name, x, y, img); | ||||
|         super(name, x, y, img, map); | ||||
|         //generate his text | ||||
|         this.textEnemy = new TextEnemy("enemi"); //TODO should be name | ||||
|         textEnemy.generateText(); | ||||
|         this.map = map; | ||||
|  | ||||
|         turn(Character.Direction.DOWN); | ||||
|         //generate the vector of fight | ||||
| @@ -22,10 +20,6 @@ public class Enemy extends Character{ | ||||
|  | ||||
|     } | ||||
|  | ||||
|     public String getMap() { | ||||
|         return map; | ||||
|     } | ||||
|  | ||||
|     public void setPosition(int x, int y, String map){ | ||||
|         position.set(x, y); | ||||
|         this.map = map; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user