Advertisement
Guest User

Untitled

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