aboutsummaryrefslogtreecommitdiffstats
path: root/src/shooterScreen.h
diff options
context:
space:
mode:
authornathansmith117 <thenathansmithsmith@gmail.com>2024-05-06 17:51:39 +0000
committernathansmith117 <thenathansmithsmith@gmail.com>2024-05-06 17:51:39 +0000
commitc475f3de248a25a999dafd4792d0454eb55191c1 (patch)
tree9fed15b875176bf7bd6ca6d26c9b0d1e3fa8e984 /src/shooterScreen.h
parenta62dd3774512041a71f708c0e891893febb8b19e (diff)
downloadPenguinYippies-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.h31
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