asteroids techdemo 10.04
parent
f862a952e5
commit
dd70d90ba5
|
@ -22,12 +22,14 @@ int main (int argc, char* argv[]) {
|
||||||
engine.SetPhysics (new asteroids::Physics);
|
engine.SetPhysics (new asteroids::Physics);
|
||||||
engine.SetView (new asteroids::View);
|
engine.SetView (new asteroids::View);
|
||||||
|
|
||||||
SetLogPrintLevel (Engine::LogLevelMessage);
|
SetLogPrintLevel (Engine::LogLevelDebug);
|
||||||
|
|
||||||
if (engine.Init (argc, argv) != 0) {
|
if (engine.Init (argc, argv) != 0) {
|
||||||
cout << "Could not start engine!" << endl;
|
cout << "Could not start engine!" << endl;
|
||||||
exit (-1);
|
exit (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SDL_WM_SetCaption("Asteroids -TechDemo- 10.04","Asteroids");
|
||||||
|
|
||||||
engine.GetView()->SetGridSize (8,8);
|
engine.GetView()->SetGridSize (8,8);
|
||||||
dynamic_cast<asteroids::Physics*>(engine.GetPhysics())->SetWorldSize (28, 20);
|
dynamic_cast<asteroids::Physics*>(engine.GetPhysics())->SetWorldSize (28, 20);
|
||||||
|
|
|
@ -74,7 +74,6 @@ int Engine::OnInit (int argc, char* argv[]) {
|
||||||
exit (-1);
|
exit (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Model */
|
/* Model */
|
||||||
if (mModel == NULL)
|
if (mModel == NULL)
|
||||||
mModel = new ModelBase ();
|
mModel = new ModelBase ();
|
||||||
|
|
Loading…
Reference in New Issue