added monster drops
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user