Unnamed
public text v1 · immutable// Start MAIN
StartMain
// load a model
Node mesh = LoadMesh ("model.x");
// rotate it
SetRot (mesh, vector3df(15,15,15));
// add a camera
camera = CameraFPS;
// position our model
SetPos (mesh, vector3df(0,0,13));
// now animate it
PlayAnim (mesh);
// song, anyone?
PlaySound2D("asong.mp3",true); // true means streaming
StartLoop
DoUpdate
}
}