Added some structuring.

The game runs but only a black window is shown.
This commit is contained in:
King_DuckZ 2014-02-21 21:28:34 +01:00
parent f132916a0f
commit d0893cba3a
16 changed files with 296 additions and 88 deletions

24
src/gameplayscene.cpp Normal file
View file

@ -0,0 +1,24 @@
#include "gameplayscene.hpp"
#include "mover.hpp"
namespace cloonel {
///--------------------------------------------------------------------------
///--------------------------------------------------------------------------
GameplayScene::GameplayScene (SDLMain* parSdlMain) :
GameBase(parSdlMain)
{
}
///--------------------------------------------------------------------------
///--------------------------------------------------------------------------
void GameplayScene::OnUpdate (float parDelta) {
for (auto itMover : m_movers) {
itMover->ApplyMotion(parDelta);
}
}
///--------------------------------------------------------------------------
///--------------------------------------------------------------------------
void GameplayScene::OnRender() {
}
} //namespace cloonel