summaryrefslogtreecommitdiff
path: root/engine-ocean/Game/GameplayScreen.h
diff options
context:
space:
mode:
authorjjesswan <jessica_wan@brown.edu>2024-04-22 21:56:26 -0400
committerjjesswan <jessica_wan@brown.edu>2024-04-22 21:56:26 -0400
commita556b45abf18f1bd509daaf63b66b7d55e9fd291 (patch)
treebc9b8a2d184c12aee236e7f9f276a34b84ca552d /engine-ocean/Game/GameplayScreen.h
parentcd7c76017a12bb548036571c1ff13e551369d06d (diff)
add engine version
Diffstat (limited to 'engine-ocean/Game/GameplayScreen.h')
-rw-r--r--engine-ocean/Game/GameplayScreen.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/engine-ocean/Game/GameplayScreen.h b/engine-ocean/Game/GameplayScreen.h
new file mode 100644
index 0000000..d25d9ca
--- /dev/null
+++ b/engine-ocean/Game/GameplayScreen.h
@@ -0,0 +1,34 @@
+#ifndef GAMEPLAYSCREEN_H
+#define GAMEPLAYSCREEN_H
+#include "Game/GameWorld.h"
+#include "Graphics/global.h"
+#include "Graphics/camera.h"
+#include <GLFW/glfw3.h>
+#include "screen.h"
+
+
+
+class GameplayScreen: public Screen
+{
+public:
+ GameplayScreen(std::map<int, Input>& input_map);
+
+
+ void update(double deltaTime) override;
+ void draw() override;
+ void keyEvent(int key, int action) override;
+ void mousePosEvent(double xpos, double ypos) override;
+ void mouseButtonEvent(int button, int action) override;
+ void scrollEvent(double distance) override;
+ void windowResizeEvent(int width, int height) override;
+ void framebufferResizeEvent(int width, int height) override;
+
+private:
+ std::map<int, Input>& m_input_map;
+
+
+
+ GameWorld game;
+};
+
+#endif // GAMEPLAYSCREEN_H