diff options
author | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-03-11 17:27:31 +0000 |
---|---|---|
committer | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-03-11 17:27:31 +0000 |
commit | 57a682c295eb665dfa935031446df255471f8edd (patch) | |
tree | 43f32d4064e1ed0d1b94129f36fb4f15f52f7716 /src/shop.c | |
parent | 372297622a2da74a31c54e44283c4d2333ebf53f (diff) | |
download | PenguinYippies-57a682c295eb665dfa935031446df255471f8edd.tar.gz PenguinYippies-57a682c295eb665dfa935031446df255471f8edd.tar.bz2 PenguinYippies-57a682c295eb665dfa935031446df255471f8edd.zip |
Moved things around a tiny ittle bit
Diffstat (limited to 'src/shop.c')
-rw-r--r-- | src/shop.c | 40 |
1 files changed, 40 insertions, 0 deletions
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) +{ + +} |