From 57a682c295eb665dfa935031446df255471f8edd Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Mon, 11 Mar 2024 11:27:31 -0600 Subject: Moved things around a tiny ittle bit --- src/shop.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/shop.c (limited to 'src/shop.c') diff --git a/src/shop.c b/src/shop.c new file mode 100644 index 0000000..68ce2f9 --- /dev/null +++ b/src/shop.c @@ -0,0 +1,40 @@ +#include "shop.h" +#include "game.h" +#include "assets.h" + +void initShop(Shop* shop, Game* game) +{ + +} + +void updateShop(Shop* shop, Game* game) +{ + Texture shopBoard = game->assets.textures[SHOP_BOARD_TEXTURE]; + + // Board thingy. + DrawTexturePro( + shopBoard, + (Rectangle){0.0, 0.0, shopBoard.width, shopBoard.height}, + (Rectangle){0.0, 0.0, WINDOW_WIDTH, WINDOW_HEIGHT}, + (Vector2){0.0, 0.0}, + 0.0, + WHITE + ); + + // Penguin thingy thing thing + Texture yoyoyo = game->assets.textures[EMPEROR_SHOP_UI_TEXTURE]; + + DrawTexturePro( + yoyoyo, + (Rectangle){0.0, 0.0, yoyoyo.width, yoyoyo.height}, + (Rectangle){0.0, 0.0, WINDOW_WIDTH, WINDOW_HEIGHT}, + (Vector2){0.0, 0.0}, + 0.0, + WHITE + ); +} + +void closeShop(Shop* shop) +{ + +} -- cgit v1.2.3