Let's make a rain forest (using PHP and MySQL)

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

We'll just use pidgin biology / physics.

[quote=pilau]So let's make a $Matrix('matrix') Kind of matrix, if you get my drift. [/quote]

I don't undersand :(
Last edited by Grim... on Mon Oct 03, 2005 11:17 am, edited 1 time in total.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

I believe he is refering to since we are already in a matrix, we will make a matrix within the matrix :P
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

Got you.

Here is a really simple plant thingy, in case people are still unsure what the hell I'm on about...

Code: Select all

function plant ($environment_array, $object_id) {

	//get info for this plant from the database (using object_id)...

	if ($environment_array['water'] > 3 AND $environment_array['sunlight'])
	{
		// grow a little
	}
	if ($environment_array['water'] == 0)
	{
		// die a little
	}

	if ($plant_size > 50)
	{
		// start growing a seed
	}

	if ($seed_size > 10)
	{
		// drop seed - let it follow the wind around
	}
}
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

Thinking about it, the simpler the better - that way the script won't take 500 years to run a few square meters...

Mother Nature must have a <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> awesome processor...
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

I'm off for the weekend, so I'll think out it...

BTW, if we do decide to do this, I don't want to be 'boss' - I'm a much better contributor than I am a commander - something that has lead to everyone being promoted around me for the last few years :(
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post by pilau »

Hey, maybe I can try commanding a huge project like that. Would be a great experience.
And I'll be thinking on that for the weekend too. It's really a grand idea.
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

Pilau == Boss
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post by pilau »

Wow. Who's the Boss? I'm the boss 8)

Ok, When I'll have time (later today) I'll make a sourcefourge page for the project.
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post by pilau »

I'd like to get some suggestions from you guys for a name for the rain forest project. 8)

Mine is: Haven
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

LIFE
LIFE is [a] Freaking Experiment

:lol:
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

Er...

LIPHE

Liphe Is (a) PHP Heavyweights Experiment

;)

TBH, I don't have a clue.
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

I am somewhat against Haven becuase of the crappy Haven holidays TV adverts we have here in the UK, but I like the meaning beind the words.

Words like Sanctuary, and... Er...

Well, Sanctuary means a simular thing.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

bioFunction
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

Ooh.
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post by pilau »

LIFE is a good one feyd!
I like your take on it, Pimptastic, too. bioFunction. Nice.

More, says I. More!
Post Reply