diff options
author | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-05-06 17:51:39 +0000 |
---|---|---|
committer | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-05-06 17:51:39 +0000 |
commit | c475f3de248a25a999dafd4792d0454eb55191c1 (patch) | |
tree | 9fed15b875176bf7bd6ca6d26c9b0d1e3fa8e984 /src/shooterScreen.h | |
parent | a62dd3774512041a71f708c0e891893febb8b19e (diff) | |
download | PenguinYippies-c475f3de248a25a999dafd4792d0454eb55191c1.tar.gz PenguinYippies-c475f3de248a25a999dafd4792d0454eb55191c1.tar.bz2 PenguinYippies-c475f3de248a25a999dafd4792d0454eb55191c1.zip |
Builtin shooter thingy going well
Diffstat (limited to 'src/shooterScreen.h')
-rw-r--r-- | src/shooterScreen.h | 31 |
1 files changed, 31 insertions, 0 deletions
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 |