Example #1
0
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();
        
    }
}
Example #3
0
void Hero::EnableMoveable(){
    m_moveable = true;
    CheckKeyState();
}