Skip to content
Mittun Sudhahar edited this page Oct 13, 2024 · 6 revisions

Usage

Meat 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 effects of meat are higher than those smaller foods such as Carrot and Apple however still less than (Candy)[Candy] effects

Expected Behaviour

The item should be able to increase the player's hunger stat by 7 and should be deleted from inventory after 3 uses

Creating item

public Meat(Texture foodTexture) {
        super("Carrot", 8, 10, 3, new FeedEffect(7));
        this.meatTexture = new Texture("foodTexture/meat.png");
    }

Image of Meat

image

downloaded from https://en.ac-illust.com/clip-art/24140526/pixel-art-cartoon-meat-half-eaten and edited by @PHONGNGUYEN1

Clone this wiki locally