Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-09 17:48:16 +0000
committerStijn Buys <ingar@osirion.org>2008-02-09 17:48:16 +0000
commit48aa068b036f565d6b94d4207242066ba655afe4 (patch)
tree4b68cf169c7fcd4bc6f2eecc7c072830d91830f8 /src/game/game.cc
parent23aee34002facf39b56d209320817375db3b6189 (diff)
entities, step 1
Diffstat (limited to 'src/game/game.cc')
-rw-r--r--src/game/game.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/game/game.cc b/src/game/game.cc
index f9c7aa4..f8b8596 100644
--- a/src/game/game.cc
+++ b/src/game/game.cc
@@ -97,8 +97,10 @@ bool Game::init()
con_print << " " << sectors[n]->label << " " << sectors[n]->name << std::endl;
*/
- star.location = Vector3f(256.0f, 0.0f, 256.0f);
- ship.location = Vector3f(0,0,0);
+ ship = new Ship();
+ star = new Star();
+ star->location = Vector3f(256.0f, 0.0f, 256.0f);
+ ship->location = Vector3f(0,0,0);
return true;
}
@@ -117,7 +119,7 @@ void Game::shutdown()
void Game::frame(float seconds)
{
- ship.update(seconds);
+ ship->update(seconds);
}
}; // namespace game