Advertisement
smc_gamer

SML World File Format rev. 3

Jun 3rd, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Super Mario Limitless overworld file format (.wld)
  2. ; Will be kept as much like INI files as possible (static, anim, scenery, and path will probably not)
  3. ; {Braces} represent material that is still being decided
  4.  
  5. ; General world info
  6. [header]
  7. name    = World 1             ; Specified in world editor
  8. author  = Celarix/Joey      ; Specified in world editor
  9. project = Super Mario Project ; Project that file will be associated with
  10. start   = 0,0                 ; The top-left corner of the overworld
  11. size    = 1024,1024           ; The size of the overworld
  12.  
  13. ; List of static tiles, tile number increments by tile and ID is used to associate tile with its config
  14. [static]
  15. 1,5,32,32                     ; Tile number in file, ID #, x-position, y-position
  16. 2,13,128,512
  17. [/static]
  18.  
  19. ; List of animated tiles, same format but IDs refer to the same set of tiles (changed from different set)
  20. [anim]
  21. 1,18,64,192
  22. 2,36,128,384
  23. [/anim]
  24.  
  25. ; {To be completed}
  26. [scenery]
  27. [/scenery]
  28.  
  29. ; Path tiles
  30. [path]
  31. 1,892,12,24
  32. 2,457,24,48
  33. [/path]
  34.  
  35. ; Level tiles {we can write these like tiles (confusing), or we can write them like an INI (longer)}
  36. [level]
  37. number  = 1                   ; Level number in project
  38. id      = 30                  ; {What is this for?}
  39. x       = 16                  ; X position
  40. y       = 64                  ; Y position
  41. reveal  = yes                 ; Whether level is revealed or not {maybe this should be in save file}
  42. path    = level1.lvl          ; Path to level, by default it should be in same directory as world file
  43. display = Green Grass Stuff   ; Level's display name
  44. coins   = 5                   ; How many special coins are collected {tied to "projects field"}
  45. [/level]
  46.  
  47. ; Music tiles {setting the music to the world file would eliminate the need for multiple INI sections}
  48. [music]
  49. number  = 1                   ; {What is this for?}
  50. source  = world_music1.mp3    ; Music file {MP3 and WAV should be supported}
  51. x       = 82                  ; X position {not necessary if music is set to world file}
  52. y       = 28                  ; Y position
  53. [/music]
  54.  
  55. ; Revision 3, published 6/3/2012.
  56. ; WorldPlayer will be added once determined (if necessary).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement