added collision to NPCs

This commit is contained in:
2025-11-28 17:21:35 +01:00
parent b294eb49c8
commit 1f614916b5
3 changed files with 98 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ public class Entity {
setAction();
collisionOn = false;
panel.collisionH.checkTile(this);
panel.collisionH.checkObject(this, false);
panel.collisionH.checkPlayer(this);
if(!collisionOn) {
switch (direction) {