Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Visionire JSON Map Format Specification
- // Modified: 2011/02/21
- MAP ::= {
- "id":int ID, // Unique map identifier.
- "name":string NAME, // Human-readable name displayed in client.
- "offset":[ int LEFT, int TOP ], // Offset in absolute world coordinates.
- "size":[ int WIDTH, int HEIGHT ], // Width and height in tiles.
- "tilesets":[ TILESET, TILESET, TILESET, ... ], // List of source tilesets.
- "data":[ COLUMN(1), COLUMN(2), COLUMN(3) ... COLUMN(WIDTH) ] // 2D array of tile data.
- }
- TILESET ::= {
- "source": string SOURCE, // Linked resource indicator.
- "offset": int OFFSET // Offset of relative tile graphic references in absolute number-space.
- }
- COLUMN(n) ::= [ TILE(1), TILE(2), ... TILE(HEIGHT) ] // 1D array of tile data.
- TILE(n) ::= {
- "path": bool PATHABLE, // If true, the tile can be walked on; if false, it is impassable.
- "face":[ int TEXTURE, int TEXTURE, int TEXTURE, ... ] // Z-ordered stack of tile graphic references.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement