]> Dogcows Code - chaz/yoink/blobdiff - src/YoinkApp.cc
new lua scripting for scene loading
[chaz/yoink] / src / YoinkApp.cc
index a9b8f1328068029f42442cfa16630234db76f3a3..a8a06cc82f6d1e6f9f694fda7114c3c7f322ef08 100644 (file)
@@ -99,28 +99,6 @@ static std::string iconFile()
 }
 
 
-void YoinkApp::myFunc(Mf::Timer& timer, Mf::Scalar t)
-{
-       std::cout << "timer: " << t << std::endl;
-       
-       //timer.invalidate();
-}
-
-int YoinkApp::myThread()
-{
-       Mf::Scalar timer = Mf::Timer::getTicks();
-
-       for (;;)
-       {
-               std::cout << "thread awake: " << Mf::Timer::getTicks() << std::endl;
-
-               timer += 3.0;
-               Mf::Timer::sleep(timer, true);
-       }
-       return 0;
-}
-
-
 YoinkApp::YoinkApp(int argc, char* argv[]) :
        Mf::Engine(argc, argv, configFiles(), PACKAGE_STRING, iconFile()),
        music("NightFusionIntro"),
@@ -137,19 +115,14 @@ YoinkApp::YoinkApp(int argc, char* argv[]) :
        heroine = Character::alloc("RobotTrooper");
        heroine->getAnimation().startSequence("Run");
 
-       Mf::Scalar a[6] = {0.0, 1.5, -0.5, 3.0, -1.5, 1.0};
+       Mf::Scalar a[6] = {0.0, 1.5, -0.5, 3.0, -2.0, 1.0};
        interp.init(a, 2.0, Mf::Interpolator::OSCILLATE);
 
        Mf::Scalar b[2] = {1.0, 0.0};
        fadeIn.init(b, 1.0);
 
-       octree = Mf::loadScene("Test");
+       octree = Mf::loadScene("Classic");
        heroine->treeNode = octree->insert(heroine);
-
-       //myTimer.init(boost::bind(&YoinkApp::myFunc, this, _1, _2),
-                       //0.0, Mf::Timer::REPEAT);
-       //Mf::Thread thread = Mf::detachFunction(boost::bind(&YoinkApp::myThread, this));
-       //std::cout << "thread " << thread << " detached." << std::endl;
 }
 
 YoinkApp::~YoinkApp()
This page took 0.024214 seconds and 4 git commands to generate.