Computer Science Canada

2 D arrays

Author:  magicman [ 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?

Author:  AsianSensation [ Wed Apr 28, 2004 9:22 am ]
Post subject: 

http://www.compsci.ca/v2/viewtopic.php?t=1117[/url]

Author:  Tony [ Wed Apr 28, 2004 10:58 am ]
Post subject: 

eh...
arrays
another array

Author:  Flashkicks [ Wed Apr 28, 2004 1:20 pm ]
Post 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, ) ]
Smile
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)


: