void Game::Update() { m_fpscounter->OnUpdate(); sampleLink->beginUpdate(); CheckKeyState(); controller->checkKeyState(); sampleEntity->OnUpdate(); sampleLink->OnUpdate(); sampleLink->endUpdate(); }
void Player::MovePlayer() { CheckKeyState(); CheckKeyRelease(); if(agk::GetSpriteCollision(playerID, 11) == 1) { RespawnPlayer(); } }
void Hero::EnableMoveable(){ m_moveable = true; CheckKeyState(); }