]> git.localhorst.tv Git - blobs.git/blobdiff - src/blobs.cpp
introduce random genetic mutations
[blobs.git] / src / blobs.cpp
index ee5e427293ddadc5d794c1c5135de7da3a813110..f628a1bfcb02f58b151aba54ba22974df6a66e75 100644 (file)
@@ -97,8 +97,11 @@ int main(int argc, char *argv[]) {
        std::cout << "moon cycles per year: " << (planet.OrbitalPeriod() / moon.OrbitalPeriod()) << std::endl;
 
        auto blob = new creature::Creature(sim);
-       blob->Name("Blob");
+       blob->Name(assets.name.Sequential());
        Spawn(*blob, planet);
+       // decrease chances of ur-blob dying without splitting
+       blob->GetProperties().Youth().fertility = 1.0;
+       blob->GetProperties().Adult().fertility = 1.0;
        blob->BuildVAO();
 
        app::MasterState state(assets, sim);
@@ -109,7 +112,7 @@ 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, 15.0f), 0.0f)
+               .MapView(0, glm::vec3(0.0f, 0.0f, 30.0f), 0.0f)
                // from afar, rotating
                //.Orbital(glm::vec3(-60.0f, 0.0f, 0.0f))
        ;