aboutsummaryrefslogtreecommitdiffstats
path: root/src/shooterScreen.c
diff options
context:
space:
mode:
authornathansmith117 <thenathansmithsmith@gmail.com>2024-05-06 19:11:48 +0000
committernathansmith117 <thenathansmithsmith@gmail.com>2024-05-06 19:11:48 +0000
commitfcd2d57b2a28c0e342ba8bf668a4501f845a6df0 (patch)
tree91323e0802d58839aefb181d152bf5aa8f55c65a /src/shooterScreen.c
parent926f3b1467efa314bb667ddbfd45a01c0edcd426 (diff)
downloadPenguinYippies-fcd2d57b2a28c0e342ba8bf668a4501f845a6df0.tar.gz
PenguinYippies-fcd2d57b2a28c0e342ba8bf668a4501f845a6df0.tar.bz2
PenguinYippies-fcd2d57b2a28c0e342ba8bf668a4501f845a6df0.zip
Penguins billboards drawing
Diffstat (limited to 'src/shooterScreen.c')
-rw-r--r--src/shooterScreen.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/shooterScreen.c b/src/shooterScreen.c
index 07b77fa..437f0e0 100644
--- a/src/shooterScreen.c
+++ b/src/shooterScreen.c
@@ -1,5 +1,6 @@
#include "shooterScreen.h"
#include "game.h"
+#include "assets.h"
#include <raylib.h>
#include <raymath.h>
@@ -102,11 +103,14 @@ void updateShooterScreenJump(ShooterScreen* shooterScreen, Game* game)
}
}
-void updateShooterScreenPenguins(ShooterScreen* ShooterScreen, Game* game)
+void updateShooterScreenPenguins(ShooterScreen* shooterScreen, Game* game)
{
+ Texture texture = game->assets.textures[PENGUIN_BILLBOARD_TEXTURE];
+ ShooterPenguin* penguins = shooterScreen->penguins;
+
for (int i = 0; i < SHOOTER_PENGUIN_COUNT; ++i)
{
-
+ DrawBillboard(shooterScreen->player.camera, texture, penguins[i].position, 2.0, WHITE);
}
}