diff options
author | Stijn Buys <ingar@osirion.org> | 2008-03-02 12:51:53 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-03-02 12:51:53 +0000 |
commit | eb649a80fbb272eee260e1fb3f58a5da77191522 (patch) | |
tree | 6bd26ecf8de50fd0dac6c33c37f3f2b152304ffc /src/game | |
parent | 81787e9004377016236865e95b95707ed6cf1d0b (diff) |
better working .map reader
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/game.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/game/game.cc b/src/game/game.cc index 5157270..cf9f496 100644 --- a/src/game/game.cc +++ b/src/game/game.cc @@ -83,8 +83,8 @@ void Game::init() cube->entity_shape = core::Entity::Cube; cube->entity_color = Color(0.0f, 0.8f, 0.0f); cube->entity_location = Vector3f(24.0f, 0.0f, -24.0f); - cube->entity_name ="cube: Borg cube green"; - cube->entity_modelname = "cube"; + cube->entity_name ="ccube: Borg cube green"; + cube->entity_modelname = "ccube"; cube->entity_moduletypeid = cube_enttype; // the red cube @@ -96,6 +96,14 @@ void Game::init() cube->entity_modelname = "cube"; cube->entity_moduletypeid = cube_enttype; + // diamond + cube = new core::Entity(core::Entity::Solid & core::Entity::Static); + cube->entity_shape = core::Entity::Diamond; + cube->entity_color = Color(0.5f, 1.0f, 5.0f); + cube->entity_location = Vector3f(16.0f, 0.0f, -20.0f); + cube->entity_name = "diamond: big bucks"; + cube->entity_modelname = "ship"; + // the yellow sphere core::Entity *sphere = new core::Entity(core::Entity::Solid & core::Entity::Static); sphere->entity_shape = core::Entity::Sphere; |