LOADMAPDATA

Top  Previous  Next

Syntax

INT = LOADMAPDATA(map as POINTER,filename as string,OPT scrollwrap as INT)

Description

Loads tile position data into the map

Parameters

map - Map pointer returned by the NEWMAP funciton

filename - Name of the file containing the map data.

scrollwrap - Specifies whether the map should wrap around when scrolling.

Return value

TRUE if the map data was successfully loaded and initialized, FALSE if the file could not be opened.

Remarks

See Also: SAVEMAPDATA

Example usage

LOADMAPDATA( myMap, GETSTARTPATH+"level1.dat", TRUE )