#include "stickyNickel.h" #include "ui.h" void initStickyNickel(Entity* entity) { entity->box = entityBoxFromScale(1.0, STICKY_NICKEL_WIDTH, STICKY_NICKEL_HEIGHT); } void updateStickyNickel(Entity* entity, Game* game) { DrawBillboard(game->player.camera, game->assets.textures[NICKEL_TEXTURE], entity->position, 1.0, WHITE); } InteractionCommand interactWithStickyNickel(Entity* entity, Game* game, Selection selection) { InventoryItem item = (InventoryItem){ .id = STICKY_NICKEL, .textureId = NICKEL_TEXTURE, .count = 1 }; switch (selection) { case SELECTION_INTERACT: setInteractionChat( &game->interactionChat, "Luck you, its a sticky nickel :D\nBetter wash your hands..."); addItemToInventory(&game->inventory, item); return INTERACTION_TALK; default: entity->id = ENTITY_NONE; return INTERACTION_END; } }