2 D arrays
Author |
Message |
magicman
|
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? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
AsianSensation
|
|
|
|
|
Tony
|
|
|
|
|
Flashkicks
|
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)
|
|
|
|
|
|
|
|
|