VBGamer |
|
Re: saving/loading maps to a file via binary Jack Hoxley (0 replies, 0 views) (2001-Mar-8) try my fruitworld example, www.vbexplorer.com/directx4vb/ -> games, I do believe the editor was included in that... and the loading code will be in the game (it doesn't use binary though)...
I take it you have the master array of tiles:
LandMap(99,99) as Tile (or similiar)...
open Filename for binary access write as #12 'may need to check that line
put #12,1,LandMap
close #12
and then
open filename for binary access read as #12
get #12,1,landmap
close #12
and that'll save your array/load your array in binary format...
Jack; |