BanzaiBrainMites :: start of a new game,. .

Post screenshots, binaries and projectfiles of the projects you have made with ZGE that you want to share!

Moderator: Moderators

Post Reply
User avatar
jph_wacheski
Posts: 1005
Joined: Sat Feb 16, 2008 8:10 pm
Location: Canada
Contact:

BanzaiBrainMites :: start of a new game,. .

Post by jph_wacheski » Fri Mar 05, 2010 12:40 am

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. :)
Attachments
bbm_screen.jpg
system in action,. .
bbm_screen.jpg (50.8 KiB) Viewed 8004 times
BonzaiBrainMites_010.zip
.exe of prototype system
(32.28 KiB) Downloaded 517 times
iterationGAMES.com

User avatar
diki
Posts: 140
Joined: Thu Sep 11, 2008 7:53 pm
Location: GMT+1
Contact:

Post by diki » Fri Mar 05, 2010 9:51 pm

cool system!

User avatar
saniismail
Posts: 1
Joined: Fri Mar 05, 2010 6:47 am
Location: Malaysia
Contact:

Post by saniismail » Sun Apr 04, 2010 12:34 pm

Yeah, cool. Keep it up...! :lol:

User avatar
mkranga
Posts: 2
Joined: Fri Jan 07, 2011 5:20 am

Post by mkranga » Thu Jan 13, 2011 7:02 am

cool :twisted:

Post Reply