1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-07-07 00:41:10 +00:00

enemy integration done, but big bug when move

This commit is contained in:
2022-06-10 16:39:50 +02:00
parent 1466ba041a
commit 56d57ca17c
10 changed files with 48 additions and 47 deletions

View File

@ -57,7 +57,7 @@ public class PokeMudry extends PortableApplication {
sp.p.manageEntity(sp.sm, controller);
sp.render(g);
for (Entity entity : entities) {
entity.graphicRender(g);
if (entity.getMap().equals(sp.sm.map)) entity.graphicRender(g);
}
}
@ -71,8 +71,6 @@ public class PokeMudry extends PortableApplication {
case Input.Keys.Z:
if (sp.sm.zoom == 1.0) {
sp.sm.zoom = 0.5f;
} else if (sp.sm.zoom == 0.5) {
sp.sm.zoom = 0.25f;
} else {
sp.sm.zoom = 1;
}