diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2018-07-10 23:17:34 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2018-07-10 23:17:34 +0200 |
| commit | 20936e93023c18f54d217c66b0e08fa80f4f7d50 (patch) | |
| tree | 613f81844cfbceb5a097c4ccf77dc3688081b3e4 /Game.cpp | |
| parent | 14c12aeea30d59e9c811f1cc8c7019053d646033 (diff) | |
Camera is now an independent instance, and HumanPlayer only holds a reference to it.
Diffstat (limited to 'Game.cpp')
| -rw-r--r-- | Game.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -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(); } /*****************************************************************//** |
