Created
April 7, 2017 20:05
-
-
Save PoetaKodu/2bc83ee4b6ff152f8cea74f045a9c434 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////// | |
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