VBGamer |
|||||||||||||||||||||||||||
Re: ok =) .... Jack Hoxley (2 replies, 0 views) (2001-Feb-4) So you want a class that holds information on each tile? and then a master class that holds everything?
--> Master Class
--> ---> LandTypeClass
where Master Class might have members
GlobalLevelScript
Tiles(0 to 99, 0 to 99) as LandTypeClass
and the LandTypeClass has members like
Type as byte
ItemOnTile as byte
CharOnTile as byte
...?
The way I'd do it, if it were a tile based game would be to have a UDT describing a generalised tile
Type Tile
Texture
Type
OtherInfo...
End Type
Dim Map(0 to 99, 0 to 99) as Tile '100x100 map
and then have a type describing items and characters along the lines of
Type Something
pX, pY, pZ
End Type
Dim nItemsInWorld as long
Dim ItemList() as Something
then increment nItemsInWorld and resize the ItemList() array each time an item is added, and the same for characters...
is this what your after? or am I completely in the wrong direction?
Jack; |