From a556b45abf18f1bd509daaf63b66b7d55e9fd291 Mon Sep 17 00:00:00 2001 From: jjesswan Date: Mon, 22 Apr 2024 21:56:26 -0400 Subject: add engine version --- engine-ocean/Game/GameplayScreen.cpp | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 engine-ocean/Game/GameplayScreen.cpp (limited to 'engine-ocean/Game/GameplayScreen.cpp') 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& 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); +} -- cgit v1.2.3-70-g09d2