Page 1 of 1

BanzaiBrainMites :: start of a new game,. .

Posted: Fri Mar 05, 2010 12:40 am
by jph_wacheski
This here be a sketch of an idea for a generative growth system. It may be a base for a game or just another learning art creation,. . it has no real graphics, sounds, or effects yet just quads for each object.

Press SPACE to reset the simulation,.

GREEN bits are the growth impulses,. they regenerate the PURPLE wood,. the wood slowly dies or is eaten by the RED mites,. the YELLOW door is a warp portal for the mites,. this is used to keep the structure centered, it jumps to the furthest structure point from the center, and the mites periodically warp through it, helping keep them distributed.

I will do some graphic/sound work on this later,. . just posting for fun, as I thought it was interesting.

It grew out of an experiment to have an object move to the edge of an underlaying object and then stop,. (using built in collisions!) I was frustrated at first getting this to work, but it eventualy came to me,. here is the basis of it;

Code: Select all

ZZDC<?xml version="1.0" encoding="iso-8859-1" ?>
<Model Name="o_stayon2" Category="1" CollisionBounds="1 0 0 0" CollisionStyle="4">
  <Definitions>
    <DefineVariable Name="sensor" Type="1"/>
  </Definitions>
  <OnUpdate>
    <Condition Comment="if on 2" Expression="return sensor;">
      <OnTrue>
        <ZExpression Comment="movements"/>
      </OnTrue>
      <OnFalse>
        <RemoveModel Comment="moved off 2"/>
      </OnFalse>
    </Condition>
    <ZExpression Comment="sensor reset" Expression="sensor=0;"/>
  </OnUpdate>
  <OnSpawn>
    <ZExpression Expression="sensor=1;"/>
  </OnSpawn>
  <OnCollision>
    <ZExpression Comment="sense" Expression="sensor=1;"/>
  </OnCollision>
</Model>

That object will stay on object "catagory 2" well that is the sensor logic anyway,. the part that had me frustrated till it was figured it out,. just the bit fliping order,. it is simple really. :)

Posted: Fri Mar 05, 2010 9:51 pm
by diki
cool system!

Posted: Sun Apr 04, 2010 12:34 pm
by saniismail
Yeah, cool. Keep it up...! :lol:

Posted: Thu Jan 13, 2011 7:02 am
by mkranga
cool :twisted: