}
-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"),
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()