From c475f3de248a25a999dafd4792d0454eb55191c1 Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Mon, 6 May 2024 11:51:39 -0600 Subject: Builtin shooter thingy going well --- src/shooterScreen.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/shooterScreen.h (limited to 'src/shooterScreen.h') diff --git a/src/shooterScreen.h b/src/shooterScreen.h new file mode 100644 index 0000000..9bbc188 --- /dev/null +++ b/src/shooterScreen.h @@ -0,0 +1,31 @@ +#include "gameCommon.h" + +#ifndef SHOOTER_SCREEN_H +#define SHOOTER_SCREEN_H + +#define PLAYER_HEIGHT 2.0 +#define MOUSE_SPEED 0.01 +#define PLAYER_SPEED 10.0 + +typedef struct ShooterPlayer { + Camera3D camera; + + Vector3 position; + Vector3 direction; + Vector3 velocity; + + Vector2 cameraAngle; +} ShooterPlayer; + +typedef struct ShooterScreen { + ShooterPlayer player; +} ShooterScreen; + +void initShooterScreeen(ShooterScreen* shooterScreen, Game* game); +void updateShooterScreen(ShooterScreen* shooterScreen, Game* game); +void closeShooterScreen(ShooterScreen* shooterScreen); + +void enterShooterScreen(Game* game); +void leaveShooterScreen(Game* game); + +#endif -- cgit v1.2.3