From 20936e93023c18f54d217c66b0e08fa80f4f7d50 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Tue, 10 Jul 2018 23:17:34 +0200 Subject: Camera is now an independent instance, and HumanPlayer only holds a reference to it. --- Game.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'Game.cpp') diff --git a/Game.cpp b/Game.cpp index 1338e9b..e4c0438 100644 --- a/Game.cpp +++ b/Game.cpp @@ -60,15 +60,6 @@ static enum tPauseMenuChoice GamePause(void); *********************************************************************/ void Game(const struct tGameConfig& sGameConfig) { -#if 0 - Sprite MouseSpr( MouseSprData, - INVERT, - NOROT, - NOFLIP, - (X_SCREEN_RESOLUTION >> 1) - 4, - (Y_SCREEN_RESOLUTION >> 1) - 4); -#endif /* 0 */ - do { /* Calculate next frame. */ @@ -100,6 +91,10 @@ static void GameNextFrame(const struct tGameConfig& sGameConfig) pHumanPlayerData->handler(); } } + + /* Update camera position according + * to button pressed events. */ + sGameConfig.cam.handler(); } /*****************************************************************//** -- cgit v1.2.3