-
Notifications
You must be signed in to change notification settings - Fork 0
Apple
PHONGNGYUEN1 edited this page Aug 23, 2024
·
3 revisions
Apples are a subclass of the Food class. This item provides values for the quantity, limit, texture, name, and item code of this specific item. Apples has the least effect of improving hunger stats compared to the rest of the food items.
The item should be able to increase the player's hunger stat by 2 and should be deleted from inventory after 5 uses
public Apple(Texture foodTexture) {
super("Apple", 5, 10, 5, new FeedEffect(2));
this.appleTexture = new Texture("foodTexture/apple.png");
}
from https://www.deviantart.com/luna4s/art/Pixelart-Apple-706000118