mirror of
https://github.com/Klagarge/PokeHES.git
synced 2025-08-13 00:13:09 +00:00
add enemy but no interaction
This commit is contained in:
@@ -50,6 +50,8 @@ public class Player extends Character{
|
|||||||
// Go
|
// Go
|
||||||
setSpeed(sm.getSpeed(nextCell));
|
setSpeed(sm.getSpeed(nextCell));
|
||||||
go(goalDirection);
|
go(goalDirection);
|
||||||
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Face the wall
|
// Face the wall
|
||||||
@@ -76,6 +78,12 @@ public class Player extends Character{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean enemy() {
|
private boolean enemy() {
|
||||||
|
/*
|
||||||
|
Vector<Entity> entities = testHER.getEntities;
|
||||||
|
for (Entity entity : entities) {
|
||||||
|
|
||||||
|
}
|
||||||
|
*/
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -32,6 +32,7 @@ public class ScreenMap {
|
|||||||
public int tileWidth;
|
public int tileWidth;
|
||||||
private int height;
|
private int height;
|
||||||
public int tileHeight;
|
public int tileHeight;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void createMap(String name){
|
private void createMap(String name){
|
||||||
|
@@ -25,6 +25,10 @@ public class testHER extends PortableApplication{
|
|||||||
sm = new ScreenMap();
|
sm = new ScreenMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Vector<Entity> getEntities() {
|
||||||
|
return entities;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
Reference in New Issue
Block a user