Ludum Dare 23 Warmup
Ludum Dare 23 Warmup
Tiny Plants Jump - Gemberkoekje - Warmup Entry
UPDATE ! UPDATE ! UPDATE ! UPDATE
Now includes:
Small improvements on the movement and mutation of seeds
A small GUI: A left click now creates a plant or a seed!
---------------------------------
Tiny Plants Jump! Is a little experiment in plant growth and some simple 'DNA'.
It's not much of a game, since the only interaction is moving your camera, but I still hope I enspire some of you lot for next week.
Built in C++ and CinderLib (http://libcinder.org) for Windows only, I'm afraid.
Sourcecode is a package ment for Visual C++ Express 2008; someone with a bit of knowledge could easily fix it up for 2010. You will need the CinderLib library for it to build, though.
DNA Explanation (As requested :P):
Both the seeds and the plants have 3 defining properties:
Speed determines the speed of the seed and the growth speed of the tree,
Gravity determines how quickly the seed falls, and I've also tried to make the branches branch out more on a tree with high gravity (I was attempting to make some kind of 'weeping willow' but it never really showed)
Size determines nothing on the seed (ups :P) and how big the tree will become before it starts spewing seeds (which also means that branch won't grow any further)
The color components show the values:
Red: Gravity
Green: Size
Blue: Speed
So a white tree has max these, a red one just gravity, etc.
Seeds:
The tree sheds max 3 seeds once a branch reaches it's max height (There's some randomization in there) - the seeds will fly around randomly until a seed of another tree type becomes available, the 2 seeds will go towards each other and 'merge' taking randomly part-components of both seeds. The seed will then settle in the ground and start growing a new tree.
If a seed for whatever reason ends up in the ground without being 'fertilized' or merged, the resulting tree will have half the values of the seed.
View Gemberkoekje's journal. | View all entries by Gemberkoekje
Comments
Don't have much time (Especially if I want to keep the weekend free for LD48 :P) but I'll try to make a version with some interaction in a few weeks or so.
That was a cool simulation, might just run it in the background for a few days. Should try making it a game some time.
I've noticed that after not very long it's just creating a dense forest of mostly pink trees (I still haven't entirely figured out why it ends up being pink) so my next version should have seeds which at least sometimes decide to see the world or something. Along with some more radical mutations in DNA.
UPDATE ! UPDATE ! UPDATE ! UPDATE
Now includes:
Small improvements on the movement and mutation of seeds
A small GUI: A left click now creates a plant or a seed!
You must sign in to comment.
Love it. Can you talk a little bit more about the "simple DNA"? Did you implement any sort of crossover?