added hit detection when player hits monsters

This commit is contained in:
2025-11-29 22:57:39 +01:00
parent 005662e800
commit 0dde029719
3 changed files with 72 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ public class OldManNPC extends Entity {
public OldManNPC(GamePanel panel) {
super(panel);
name = "oldman-npc";
direction = Direction.DOWN;
speed = 1;