diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-09 17:48:16 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-09 17:48:16 +0000 |
commit | 48aa068b036f565d6b94d4207242066ba655afe4 (patch) | |
tree | 4b68cf169c7fcd4bc6f2eecc7c072830d91830f8 /src/game/game.cc | |
parent | 23aee34002facf39b56d209320817375db3b6189 (diff) |
entities, step 1
Diffstat (limited to 'src/game/game.cc')
-rw-r--r-- | src/game/game.cc | 8 |
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 |