mirror of
				https://github.com/Klagarge/PokeHES.git
				synced 2025-10-31 03:39:16 +00:00 
			
		
		
		
	near to done
This commit is contained in:
		| @@ -8,7 +8,7 @@ public class Enemy extends Character{ | ||||
|  | ||||
|     public Enemy(String name, int x, int y, String img) { | ||||
|         super(name, x, y, img); | ||||
|         //TODO Auto-generated constructor stub | ||||
|         turn(Character.Direction.DOWN); | ||||
|     } | ||||
|  | ||||
|     public void setPosition(int x, int y){ | ||||
| @@ -24,11 +24,5 @@ public class Enemy extends Character{ | ||||
|         // TODO Auto-generated method stub | ||||
|          | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public void draw(GdxGraphics arg0) { | ||||
|         // TODO Auto-generated method stub | ||||
|          | ||||
|     } | ||||
|      | ||||
| } | ||||
|   | ||||
| @@ -36,7 +36,6 @@ public abstract class Entity implements DrawableObject { | ||||
|     } | ||||
|  | ||||
|     public void init(){ | ||||
|  | ||||
|     } | ||||
|  | ||||
|     public void graphicRender(GdxGraphics g){ | ||||
|   | ||||
| @@ -14,7 +14,7 @@ public class Player extends Character{ | ||||
|     private int xp; | ||||
|  | ||||
|     public Player(int x, int y) { | ||||
|         super("Player", x, y, "lumberjack_sheet32"); | ||||
|         super("Player", x, y, "Character"); | ||||
|     } | ||||
|  | ||||
|     public void addXp(int xp){ | ||||
| @@ -46,9 +46,11 @@ public class Player extends Character{ | ||||
|  | ||||
| 			// Is the move valid ? | ||||
| 			if (sm.isWalkable(nextCell)) { | ||||
| 				// Go | ||||
| 				setSpeed(sm.getSpeed(nextCell)); | ||||
| 				go(goalDirection); | ||||
| 				if(!enemy()){ | ||||
| 					// Go | ||||
| 					setSpeed(sm.getSpeed(nextCell)); | ||||
| 					go(goalDirection); | ||||
| 				} | ||||
| 			} else { | ||||
| 				// Face the wall | ||||
| 				turn(goalDirection); | ||||
| @@ -73,7 +75,11 @@ public class Player extends Character{ | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
|     public void move(int x, int y){ | ||||
|     private boolean enemy() { | ||||
| 		return false; | ||||
| 	} | ||||
|  | ||||
| 	public void move(int x, int y){ | ||||
|  | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user