Skip to content

Instantly share code, notes, and snippets.

@zaphire
Created June 13, 2011 22:55
Show Gist options
  • Save zaphire/1023944 to your computer and use it in GitHub Desktop.
Save zaphire/1023944 to your computer and use it in GitHub Desktop.
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