Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Community Boards > Just for Kicks Challenges

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-13-2003, 06:59 PM   #1
McGiver
Goldmember
 
McGiver's Avatar
 
Join Date: Feb 2003
Location: bavaria in germany
Posts: 1,627
Default Artificial life

Ok: new task!

the title tells what to do!
Create artificial life! (or at least something that looks or behaves like AL (artificial life))
every idea is welcome: simple or complicated!

the rules:
same rules as ever!
with one exeption: a 40 line maximum (I think this is should be enough to create something useful)

anyone something to add? No?
then let's play god
McGiver is offline   Reply With Quote
Old 06-16-2003, 06:43 PM   #2
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,758
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

this one really shot off didnt it
__________________
(6)
senocular is offline   Reply With Quote
Old 06-16-2003, 08:08 PM   #3
McGiver
Goldmember
 
McGiver's Avatar
 
Join Date: Feb 2003
Location: bavaria in germany
Posts: 1,627
Default

Pom forced me to do....

hmm, i do not know, what you want!
4 Days of contest, and 1 reply! Seems this theme is really popular
McGiver is offline   Reply With Quote
Old 06-16-2003, 08:31 PM   #4
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,758
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

well I think
1) AL is intimidating enough as it is on its own
and
2) 40 lines for anything AL is pretty minimal and intimidating for that matter.

__________________
(6)
senocular is offline   Reply With Quote
Old 06-16-2003, 08:38 PM   #5
McGiver
Goldmember
 
McGiver's Avatar
 
Join Date: Feb 2003
Location: bavaria in germany
Posts: 1,627
Default

come on guys, is this really too untintresting or complicated for you? Ok, I'll create something till tomorrow (or till wednesday)
and you think about it too!? is that a deal?
McGiver is offline   Reply With Quote
Old 06-16-2003, 08:43 PM   #6
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,758
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

3) wheres yours... oh ok, tomorrow or wednesday huh? ok ok ok
__________________
(6)
senocular is offline   Reply With Quote
Old 06-17-2003, 02:24 AM   #7
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,758
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

ok, here's one for me. Whipped it up tonight - a respectable 14 lines

ActionScript Code:
this.onEnterFrame = function(){     for(var i=1;i<=10;i++) this["weed "+i].addRoot(i); }; this.addWeed = function(i, k){     this.createEmptyMovieClip("weed "+i,i).lineStyle(k, Math.random()*0xff << 8, 25+random(65));     this["weed "+i].pos = {x:random(10)*30, y:random(10)*30}; }; for (i=1;i<=10;i++) this.addWeed(i); MovieClip.prototype.addRoot = function(i){     this.moveTo(this.pos.x,this.pos.y);     this.lineTo((x=random(10)*30), (y=random(10)*30));     trace((i==1) ? "------------------\n"+this._name+" lifespan: "+(++this.life)+", kills: "+this.kills : this._name+" lifespan: "+(++this.life)+", kills: "+this.kills);     for (var i=1;i<=10;i++) if (this != this._parent["weed "+i] && this._parent["weed "+i].pos.x == x && this._parent["weed "+i].pos.y == y) this._parent.addWeed(i, this.kills++); };

meant for a 300x300 movie.

What it does is creates 10 plants (weeds) or root systems. They start out as nothing and branch off adding roots with each frame. If that root added extends to the position of another weed, it kills that weed and the dead weed has to be reborn in a random position starting over again with no roots. Color is random but the root thickness is based on the amount of kills the killing weed has. In other words a really thick rooted weed was killed by a weed with a lot of kills - a kind of helper to the underdog though, functionally, theres no difference in having big roots vs small except they're more easily seen on the screen. Every frame there is also an output of each plants lifespan in frames and kills.

Your typical predator/prey kind of thing.

__________________
(6)
senocular is offline   Reply With Quote
Old 06-17-2003, 02:28 AM   #8
Colin Campbell
Senior Member
 
Join Date: Jun 2003
Posts: 2,091
Default

good god. Am I ever supposed to do that? somebody help me! EEEEEEEEEEE
Colin Campbell is offline   Reply With Quote
Old 06-17-2003, 03:31 AM   #9
Timmee_3Styler
Canadian Flasher
 
Join Date: May 2002
Location: T dot O dot
Posts: 1,651
Default

just cover ur eyes n dont like @ the code colin
COVER THEM!!!!!!!!
Timmee_3Styler is offline   Reply With Quote
Old 06-17-2003, 11:39 AM   #10
McGiver
Goldmember
 
McGiver's Avatar
 
Join Date: Feb 2003
Location: bavaria in germany
Posts: 1,627
Default

nice one @ seno
McGiver is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:23 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.