-
Notifications
You must be signed in to change notification settings - Fork 1
Carrot
Mittun Sudhahar edited this page Oct 13, 2024
·
10 revisions
Carrot is a subclass of the Food class. This item provides values for the quantity, limit, texture, name, and item code of this specific item.
The item should be able to increase the player's hunger stat by 3 and should be deleted from inventory after 5 uses
public Carrot(Texture foodTexture) {
super("Carrot", 6, 10, 5, new FeedEffect(3));
this.carrotTexture = new Texture("foodTexture/carrot.png");
}
from https://www.vecteezy.com/png/19527057-an-8-bit-retro-styled-pixel-art-illustration-of-a-carrot