Hi sir,
Can I know the name of the datatype that the maps are generated and what is the parser we need to use for the modifications.
Thanking You sir.
Regard's
Raju.p
Datatype & Parser
thank Q sir
Thank Q sir.
give me simple example on the JSON string.
How it works on the maps.
give me simple example on the JSON string.
How it works on the maps.
Take for example the map "osExample1#m1_House1Inside.map".
The map is a JSON object with the following properties:
i is the map id
w and h are the map width and height
bgi is background id in the library
bgh and bgv are the background offset values with respect to the map grid
e means that the map is editable
tiles is an array of tiles; each one is an object like this:
where:
i is the tile id in the library
ix is a progressive index number like in this picture
ap means that the tile is an access point
The map is a JSON object with the following properties:
i is the map id
w and h are the map width and height
bgi is background id in the library
bgh and bgv are the background offset values with respect to the map grid
e means that the map is editable
tiles is an array of tiles; each one is an object like this:
Code: Select all
{"i":"t0","ix":46,"ap":true}
where:
i is the tile id in the library
ix is a progressive index number like in this picture
ap means that the tile is an access point
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Return to “OpenSpace v2 discussions and help”
Who is online
Users browsing this forum: No registered users and 8 guests