summaryrefslogtreecommitdiff
path: root/engine-ocean/Game/GameplayScreen.cpp
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.cpp
parentcd7c76017a12bb548036571c1ff13e551369d06d (diff)
add engine version
Diffstat (limited to 'engine-ocean/Game/GameplayScreen.cpp')
-rw-r--r--engine-ocean/Game/GameplayScreen.cpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/engine-ocean/Game/GameplayScreen.cpp b/engine-ocean/Game/GameplayScreen.cpp
new file mode 100644
index 0000000..6d7acd7
--- /dev/null
+++ b/engine-ocean/Game/GameplayScreen.cpp
@@ -0,0 +1,44 @@
+#include "GameplayScreen.h"
+
+GameplayScreen::GameplayScreen(std::map<int, Input>& input_map):
+ m_input_map(input_map),
+ game(GameWorld(input_map))
+
+{
+ //game = GameWorld(m_input_map);
+}
+
+
+void GameplayScreen::mousePosEvent(double xpos, double ypos){
+ game.mousePosEvent(xpos, ypos);
+}
+
+void GameplayScreen::mouseButtonEvent(int button, int action){
+ game.mouseButtonEvent(button, action);
+}
+
+
+void GameplayScreen::scrollEvent(double distance){
+ game.scrollEvent(distance);
+}
+
+
+void GameplayScreen::update(double deltaTime){
+ game.update(deltaTime);
+}
+
+void GameplayScreen::draw(){
+ game.draw();
+}
+
+void GameplayScreen::keyEvent(int key, int action){
+ game.keyEvent(key, action);
+}
+
+void GameplayScreen::framebufferResizeEvent(int width, int height){
+ game.framebufferResizeEvent(width, height);
+}
+
+void GameplayScreen::windowResizeEvent(int width, int height){
+ game.windowResizeEvent(width, height);
+}