2 D arrays
Author |
Message |
magicman
![](http://clanff7.cl.funpic.org/modules/Forums/images/avatars/5066862484383ad4eaf5d5.jpg)
|
Posted: Wed Apr 28, 2004 9:15 am Post subject: 2 D arrays |
|
|
I'm making a 2d array and i need help with 2 d arrays. Can anyone teach me how to use them??
and also how would I use it in my rpg? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
AsianSensation
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
|
|
|
![](images/spacer.gif) |
Flashkicks
![](http://www.digital-sat.tv/copperfield67/Avatars/matrix.gif)
|
Posted: Wed Apr 28, 2004 1:20 pm Post subject: (No subject) |
|
|
Heres a nice handy Dandy grid system relative to using 2Dimentional arrays.. You can just change the sizes of the boxes when yuo call the procedure.
[Eg. Boxes (25, 25) Boxes (5, 5, ) ]
code: | procedure Boxes (hieght : int, width : int)
for i : 1 .. 8
for j : 1 .. 8
drawbox (width * i, hieght * j, width * i + hieght, hieght * j + width, 12)
end for
end for
end Boxes
Boxes (25, 25)
|
|
|
|
|
|
![](images/spacer.gif) |
|
|