Skip to content

Instantly share code, notes, and snippets.

@PoetaKodu
Created April 7, 2017 20:05
Show Gist options
  • Save PoetaKodu/2bc83ee4b6ff152f8cea74f045a9c434 to your computer and use it in GitHub Desktop.
Save PoetaKodu/2bc83ee4b6ff152f8cea74f045a9c434 to your computer and use it in GitHub Desktop.
/////////////////////////////////////////////////////////
void CGame::Run() // Glowny kod gry.
{
/* Pamiętamy żeby ustawić odpowiedni status aplikacji. */
m_status = Status::Running;
auto player = new CPlayer();
/* Btw. taki zapis to skrot od player->SetLocation(grim::Vector2(400,300));
Kompilator powinien sie domyslic o co chodzi.
*/
player->SetLocation({ 400, 300 });
m_currentLevel->Add(player);
auto enemy = new CEnemy();
enemy->SetLocation({500, 200});
m_currentLevel->Add(enemy);
/* Tutaj reszta kodu */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment