I've used 3 dimensional arrays to produce mini-mystery games where the x,y
was the location and z was time.

Basically the x,y defaults to a standard "room picture clip" if n[x][y][z]
was empty, but you can add an "event" to any room by pointing n[x][y][z] at
an animation or movie file.

then you let the person wander, where north is x-1, south x+1, west y-1, and
east y+1, and every move increments z by 1.

Admittedly really primitive, but it worked for a simple "TESOL through
gaming" demo I did back in my grad school days in VB.

Mike.

-----Original Message-----
From: Phoeun Pha [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 1:37 PM
To: CF-Talk
Subject: RE: why use 3rd dimensional array???


well yeah i can see how it can be used for math stuff.  but i mean like a
real situation


-----Original Message-----
From: Eric Dawson [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 1:17 PM
To: CF-Talk
Subject: Re: why use 3rd dimensional array???


to hold 3 dimensional data. sorry.

Simple example. some kind of cubic sample. like say air temperature in a 
room for each specific cubic foot. The index is h,w,l and the value 
corresponds to the appropriate cube in the room.

I can get a better, more practival example if you like.

E

From: Phoeun Pha <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: CF-Talk <[EMAIL PROTECTED]>
Subject: why use 3rd dimensional array???
Date: Mon, 05 Feb 2001 12:35:38 -0600

how would one use a third dimensional array?  it's hard for me to
conceptualize a practical use for it!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to