asteroids techdemo 10.04

main
Martin Felis (berta) 2010-04-06 22:55:49 +02:00
parent f862a952e5
commit dd70d90ba5
2 changed files with 3 additions and 2 deletions

View File

@ -22,13 +22,15 @@ 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);

View File

@ -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 ();