Self Replication v2

This is my second version of a Self Replication application.

This time the little guys are on the hunt for food and when they feed they grow in length by one unit, just like the game snake for the old mobile phones. Each ‘snake’ has a unique set of ‘DNA’ which contains the following variables :

  • Speed of Snake : The speed of the snake will decrease as it becomes longer and increase as it shrinks.
  • Starvation Time : When the snake is not eating (looking for more food) the starvation time determines how long it takes before it looses one of it’s ‘units’ and gets shorter. The starvation time is closely linked with the speed of the snake. The faster the snake, the faster it’s unit’s diminish as it uses more energy moving around. A slower snake will use less energy and thus it’s ‘Starvation time’ is considerably longer. When the snake looses it’s final unit it dies and no longer exists.
  • Colour.
  • Digestion Time : How long it takes to convert an item of food into a part of it’s body (a ‘unit’).
  • Pregnancy Time : When a snake reaches a length of 10 units (this will be moved to the DNA in V3) it becomes pregnant and the pregnancy time determines how long it takes before an egg is laid.

When an egg is laid the DNA of the parent snake is transferred to the offspring within the egg. A random number of offspring is produced from each snake within the confines of a minimum and maximum litter boundary. The child snakes are born at a length of 1 unit and immediately need to feed or risk starvation.

Hit ‘SPACE‘ in order to show when the next harvest of food is due, or force it come sooner. Alternatively you can feed an individual area by hitting the ‘Feed Small Area‘ button.

The Fly

fly1.jpg fly2.jpg fly3.jpg

So, the idea originally was to create a thingy which took a predefined number of flies and made them fly about and behave like real flies. I soon got side tracked and ended up doing stuff with the mouse and so The Fly took on a different purpose. A big fat juicy timewaster.

Here are some links to different versions. All the same engine. Warning: They are a bit CPU heavy…. that will teach me to not rebuild in AS3.

TheFly – Experiment 1

TheFly – Experiment 2 – The same as before but now they shift their ass.

TheFly – Experiment 3 – Now they change colour.

TheFly – Experiment 4 – Another variation

TheFly – Experiment 5 – Trust me, there are hundreds.

I have lots more which I will upload in time. However… here’s the original FLA Flash 8, AS2

Play around with the library symbols. Easy.