Lab Lab Bunny Lab
Awards
Scores
Ratings (show detail)
Overall: 3.7
Fun: 3.2
Production: 4.1
Innovation: 4.0
Respondents: 26
Files
File | Uploader | Date |
---|---|---|
lab-lab-bunny-lab-1.0.1.zip
— final
Zip contains directory, Mac junk files removed, no crash on missing AVbin |
cyhawk | 2011/09/18 20:03 |
song-song-bunny-sing_clean.mp3
Almost-effect-free War Song |
cyhawk | 2011/09/18 19:55 |
icon512.png
Icon |
cyhawk | 2011/09/18 18:13 |
lab-lab-bunny-lab-1.0.zip
— final
Now with music! |
cyhawk | 2011/09/18 18:13 |
lab-lab-bunny-lab-0.9.zip
— final
Music coming soon |
cyhawk | 2011/09/17 23:27 |
Lab Lab Bunny Lab 2011-09-17 at 11.55.23 PM cropped.png
Breeding monkey trees |
cyhawk | 2011/09/17 23:24 |
entry-screenshot.png
|
cyhawk | 2011/09/17 21:55 |
Lab Lab Bunny Lab 2011-09-16 at 10.49.32 PM.png
Fantastic creatures — this bug is awesome! |
cyhawk | 2011/09/16 21:56 |
Lab Lab Bunny Lab 2011-09-16 at 10.14.26 PM downsized.png
GUI |
cyhawk | 2011/09/16 21:21 |
lab-lab-bunny-lab-dev-3.zip
Blooper 1 |
cyhawk | 2011/09/16 21:13 |
Lab Lab Bunny Lab 2011-09-14 at 12.31.49 AM.png
Saluk's Bunny |
cyhawk | 2011/09/13 23:32 |
Lab Lab Bunny Lab 2011-09-14 at 12.01.21 AM.png
First bunny -- alternate textures |
cyhawk | 2011/09/13 23:02 |
Lab Lab Bunny Lab 2011-09-13 at 10.53.27 PM.png
First bunny -- textured |
cyhawk | 2011/09/13 22:03 |
Lab Lab Bunny Lab 2011-09-12 at 10.53.41 PM.png
First mutant |
cyhawk | 2011/09/12 21:54 |
Lab Lab Bunny Lab 2011-09-12 at 10.40.57 PM.png
First bunny |
cyhawk | 2011/09/12 21:43 |
Diary Entries
The First Bunny
I see no reason why you would want to check out its complete DNA sequence other than interest in the strange. As an artificial species I imagine its genome is quite fragile now. I'll have to carefully mutate and breed it tomorrow so that it becomes hardier.
After that I'll have to come up with a way to turn this into a game. OR I'LL JUST PLAY WITH MY BUNNY!
Bunnies free for a limited time only!
There is not much to do yet, but there is something awesomely wrong about the genetic system.
Teaser:
Monkey trees and a release candidate
My wife is still recording the music so if you are in no rush to try this, it may be best to hold out for version 1.0.
Hear the song of the First Bunny War
If you press Alt-Tab you will also see fancy icons now (pictured below).
- lab-lab-bunny-lab-1.0.1.zip (9.4MB)
Before these last touches were added the game had nothing sinister in it. Version 0.9 may be better suited for ages 13 and under...
Lab Lab Bunny Lab: Behind The Scenes
As I played a bunch of PyWeek games during the weekend I found the postmortems detailing the intricacies of the games and their development a great read. They also spawn good discussions of what is missing and what could be changed. So...
Genetics
Lab Lab Bunny Lab's creatures are defined by their virtual DNA. This DNA is a string made up of ABCD characters. Some sequences carry meaning. These are the genes.
It appears the final version has 19 genes:
- 3 for texture: leaf, furry, scaled,
- 5 for color: red, green, blue, bright, dark,
- 3 for special organs: eye, wing, tooth,
- 4 for controlling the shape of a body part: inflate and shrink control the radius, contract and widen control the eccentricity,
- 2 rotate the body part clockwise or counter-clockwise,
- one starts a new body part and another concludes the description of a body part.
The sequence of genes is very much like a turtle program that describes how to draw the creature. To make it more interesting there are a few special rules, for example:
if material == 'furry': if r and g: # Brown is dominant. b = 0 g = min(r, g) elif material == 'leaf': if g: # Green is dominant. r /= 2 b /= 3
Inheritance
The creatures actually have two homologous chromosomes. Two strands of DNA that are read in parallel. The gene sequence of the creature is the merging of the gene sequences of the two chromosomes.
When you mate two creatures they each create one "mixed" chromosome by crossing over their own chromosomes at random points. The offspring gets one mixed chromosome from each parent.
Exercise
This setup makes it possible to observe Mendelian inheritance. Put a bunny in the mutator and press it until something notable happens. Say a leg becomes brighter. This could be explained by damaging the dark gene of the leg on both chromosomes or by manifesting the bright gene on one chromosome by good chance.
Let's figure out which is the case! Clone the mutated rabbit and breed it with its clone. (Yeah, sex chromosomes are not simulated. Makes experimentation easier... and weirder.) If the dark gene was destroyed none of the offspring should have a dark leg. If the bright gene was added it should be inherited by 3 out of 4 offspring. This is because each parent passes this gene on with a 50% probability and if either of them does, the offspring will have a bright leg.
This is already Mendelian inheritance but you could carry on crossing specimen from later generations and verify the statistics predicted by the theory. Gregor Mendel cultivated 29,000 pea plants — see if you can make do with less!
Regrets
I have basically managed to finish one of three pillars intended as the basis of the game. The missing two are:
Intermediate genetic manipulation. The Digitalizer gives absolute control but is no fun to use. I had planned some tools to fill the gap between the Mutator and the Digitalizer. A Sequencer that would report the list of genes found in a DNA. An Autopsy service that would destroy a creature and provide body part-level information (maybe break up the DNA into per-part fragments). A Retrovirus designer that would allow you to replace some sequences with others in a creature.
Outside world. An environment into which you can throw your creations and have them solve problems. You could control them through a Controller where you bind sequences to keys on your keyboard. Pressing the key would activate the part that has that sequence. You would capture new creatures (with exciting new genetic material) from this outside world, probably by beating them up.
I am not sure how I could have fit these in the week. I am not Cosmologicon :). I probably aimed too high. Tuning the genetics soaked up a lot of time and it could not be skipped since it is the core of the game. Features that can soak up indefinite amounts of time are the number one enemy in PyWeek in my opinion.
I also spent quite some time on the UI. I did not use a toolkit because I can write the line for checking where the user clicked faster than I can figure out a toolkit. Turns out a UI with drag and drop, vertical and horizontal containers and all this stuff is a bit more work — looks like it clocks in at 300 lines. Also it took me ages to draw the graphical elements. And I don't even have a button click animation!
Ah, and I only realized on Saturday that saving the game is not as easy as pickle.dump(game, file('save_game', 'w')) when every object references a few sprites :).