diff options
author | jjesswan <jessica_wan@brown.edu> | 2024-04-22 21:56:26 -0400 |
---|---|---|
committer | jjesswan <jessica_wan@brown.edu> | 2024-04-22 21:56:26 -0400 |
commit | a556b45abf18f1bd509daaf63b66b7d55e9fd291 (patch) | |
tree | bc9b8a2d184c12aee236e7f9f276a34b84ca552d /engine-ocean/Game/GameplayScreen.cpp | |
parent | cd7c76017a12bb548036571c1ff13e551369d06d (diff) |
add engine version
Diffstat (limited to 'engine-ocean/Game/GameplayScreen.cpp')
-rw-r--r-- | engine-ocean/Game/GameplayScreen.cpp | 44 |
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); +} |