Bläddra i källkod

Updated the template project to use Scene::load instead of Bundle

Darryl Gough 13 år sedan
förälder
incheckning
489474bf1d
1 ändrade filer med 1 tillägg och 3 borttagningar
  1. 1 3
      gameplay-template/src/TemplateGame.cpp

+ 1 - 3
gameplay-template/src/TemplateGame.cpp

@@ -11,9 +11,7 @@ TemplateGame::TemplateGame()
 void TemplateGame::initialize()
 {
     // Load game scene from file
-    Bundle* bundle = Bundle::create("res/box.gpb");
-    _scene = bundle->loadScene();
-    SAFE_RELEASE(bundle);
+    _scene = Scene::load("res/box.gpb");
 
     // Set the aspect ratio for the scene's camera to match the current resolution
     _scene->getActiveCamera()->setAspectRatio((float)getWidth() / (float)getHeight());