1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2024-11-26 19:13:27 +00:00

add enemy but no interaction

This commit is contained in:
Rémi Heredero 2022-06-08 20:18:22 +02:00
parent 4843f5d1d8
commit cd64313dec
3 changed files with 13 additions and 0 deletions

View File

@ -50,6 +50,8 @@ public class Player extends Character{
// Go
setSpeed(sm.getSpeed(nextCell));
go(goalDirection);
} else {
}
} else {
// Face the wall
@ -76,6 +78,12 @@ public class Player extends Character{
}
private boolean enemy() {
/*
Vector<Entity> entities = testHER.getEntities;
for (Entity entity : entities) {
}
*/
return false;
}

View File

@ -34,6 +34,7 @@ public class ScreenMap {
public int tileHeight;
private void createMap(String name){
TiledMap tm =new TmxMapLoader().load("./resources/map/"+ name + ".tmx");
tMap.put(name,tm);

View File

@ -25,6 +25,10 @@ public class testHER extends PortableApplication{
sm = new ScreenMap();
}
public static Vector<Entity> getEntities() {
return entities;
}
public static void main(String[] args) {