]> git.localhorst.tv Git - blobs.git/blobdiff - src/blobs.cpp
randomize creature properties a bit
[blobs.git] / src / blobs.cpp
index 23ab012fed3a0d31aaca785e327074da2dde6e41..b32c4ab22e31a463c2f90e250bff482cd32172f5 100644 (file)
@@ -1,9 +1,9 @@
-#include "const.hpp"
 #include "app/Application.hpp"
 #include "app/Assets.hpp"
 #include "app/init.hpp"
 #include "app/MasterState.hpp"
 #include "creature/Creature.hpp"
+#include "math/const.hpp"
 #include "world/Planet.hpp"
 #include "world/Set.hpp"
 #include "world/Simulation.hpp"
@@ -67,7 +67,7 @@ int main(int argc, char *argv[]) {
        std::cout << "moon cycle in days: " << (moon.OrbitalPeriod() / planet.RotationalPeriod()) << std::endl;
        std::cout << "moon cycles per year: " << (planet.OrbitalPeriod() / moon.OrbitalPeriod()) << std::endl;
 
-       auto blob = new creature::Creature;
+       auto blob = new creature::Creature(sim);
        Spawn(*blob, planet, assets);
        blob->BuildVAO();
        blob->Name("Blob");
@@ -80,9 +80,9 @@ int main(int argc, char *argv[]) {
                // sunset
                //.FirstPerson(3, glm::vec3(0.0f, 0.0f, 0.1f), glm::vec3(1.0f, -0.75f, 0.1f))
                // from afar
-               //.MapView(0, glm::vec3(0.0f, 0.0f, 60.0f), 0.0f)
+               .MapView(0, glm::vec3(0.0f, 0.0f, 10.0f), 0.0f)
                // from afar, rotating
-               .Orbital(glm::vec3(-60.0f, 0.0f, 0.0f))
+               //.Orbital(glm::vec3(-60.0f, 0.0f, 0.0f))
        ;
        // system view
        //state.GetCamera()