示例#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();
        
    }
}
示例#3
0
文件: Hero.cpp 项目: LettyLin/Gear
void Hero::EnableMoveable(){
    m_moveable = true;
    CheckKeyState();
}