Created
June 13, 2011 22:55
-
-
Save zaphire/1023944 to your computer and use it in GitHub Desktop.
This file contains 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
class MarianGame : public Game | |
{ | |
public: | |
MarianGame(); | |
void Update(); | |
private: | |
Continuity continuity; | |
Values values; | |
Moods moods; | |
}; | |
MarianGame::MarianGame() | |
: Game("Marian and the Fantastic World of Dreams", 1024, 768, 32, false) | |
{ | |
// set the base content path (used by everything) | |
Assets::SetContentPath("../../Content/Marian/"); | |
values.Load("values.xml"); | |
moods.Load("moods.xml"); | |
continuity.Reset(); | |
SetScene(new LevelScene( Values::GetString("startLevel") )); | |
//SetScene(new TitleScene()); | |
} | |
void MarianGame::Update() | |
{ | |
Game::Update(); | |
Continuity::Update(); | |
if (Input::IsKeyPressed(KEY_F)) | |
{ | |
printf("test\n"); | |
//Graphics::instance->SetResolution(800, 600, 32, false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment