added collision for monsters (and made test world-setup)

This commit is contained in:
2025-11-29 00:08:42 +01:00
parent 71dc34b418
commit d07077a5f1
4 changed files with 52 additions and 84 deletions

View File

@@ -59,6 +59,8 @@ public class Entity {
collisionOn = false;
panel.collisionH.checkTile(this);
panel.collisionH.checkObject(this, false);
panel.collisionH.checkEntity(this, panel.npc);
panel.collisionH.checkEntity(this, panel.monster);
panel.collisionH.checkPlayer(this);
if(!collisionOn) {