added monster drops

This commit is contained in:
2025-12-07 00:57:54 +01:00
parent 6254eb2501
commit 1443722f0c
3 changed files with 27 additions and 2 deletions

View File

@@ -199,6 +199,19 @@ public class Entity {
}
public void use(Entity entity) {
} //If entity is consumable
public void checkDrop() {
}
public void dropItem(Entity droppedItem) {
for(int i = 0; i < panel.obj.length; i++) {
if(panel.obj[i] == null) {
panel.obj[i] = droppedItem;
panel.obj[i].worldX = worldX;
panel.obj[i].worldY = worldY;
break;
}
}
}
// SETTING THINGS UP
BufferedImage parseSprite() {