TurtleBrains  0.2.1
High quality, portable, C++ API for native application and game development.
Give the Scene a Backdrop

That will create an extremely basic scene presenting a black screen, pretty boring so lets set the stage with a simple backdop.

modify egg_drop_game_scene.cpp

void EggDropGameScene::OnOpen(void)
{
tbGame::OnOpen();
AddGraphic(new tbGraphics::Sprite("data/backdrop.png"));
}
void EggDropGameScene::OnClose(void)
{
tbGame::OnClose();
RemoveGraphics();
}

Previous Step :: Next Step