Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/game.cc')
-rw-r--r--src/game/game.cc27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/game/game.cc b/src/game/game.cc
index 8a50e33..197700f 100644
--- a/src/game/game.cc
+++ b/src/game/game.cc
@@ -21,6 +21,7 @@ namespace game
bool Game::init()
{
using math::Vector3f;
+ using math::Color;
//using filesystem::IniFile;
con_print << "Initializing game..." << std::endl;
@@ -101,9 +102,35 @@ bool Game::init()
star->location = Vector3f(256.0f, 0.0f, 256.0f);
star->label = "star: Sabishi Hoshi";
+
ship = new Ship();
ship->location = Vector3f(0,0,0);
ship->label = "ship: Micron Vector";
+
+ core::Entity *cube = new core::Entity(core::entity::Solid & core::entity::Static);
+ cube->base_shape = core::entity::Cube;
+ cube->base_color = Color(0.0f, 0.8f, 0.0f);
+ cube->location = Vector3f(24.0f, 0.0f, -24.0f);
+ cube->label ="cube: Borg cube green";
+
+ cube = new core::Entity(core::entity::Solid & core::entity::Static);
+ cube->base_shape = core::entity::Cube;
+ cube->base_color = Color(1.0f, 0.0f, 0.0f);
+ cube->location = Vector3f(16.0f, 0.0f, -16.0f);
+ cube->label ="cube: Borg cube red";
+
+ core::Entity *sphere = new core::Entity(core::entity::Solid & core::entity::Static);
+ sphere->base_shape = core::entity::Sphere;
+ sphere->base_color = Color(0.8f, 0.8f, 0.0f);
+ sphere->location = Vector3f(0.0f, 0.0f, -32.0f);
+ sphere->label ="sphere: The Sphere";
+
+ core::Entity *axis = new core::Entity(core::entity::Static);
+ axis->base_shape = core::entity::Diamond;
+ axis->base_color = Color(1.0f, 1.0f, 0.0f);
+ axis->location = Vector3f(0, 0, 0);
+ axis->label = "axis: Origin";
+
return true;
}