Advertisement
lavalevel

Load Map

Feb 1st, 2012
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. local function loadMap()
  2. --[[
  3. _L _L
  4. [__]______[__]
  5. || o ||
  6. || __/\_ ||
  7. || -MAP ||
  8. || LOAD ||
  9. ||________||
  10. [__] [__]
  11. T T
  12. ]]
  13. local jsonDecode2 = load(playerData.playerInfo.playerLocation .. GameDisk.SaveDisk) -- load business
  14. getMaps = json.decode(jsonDecode2) -- decode the business
  15.  
  16. print ("IMPORTANT-------------> check this".. playerData.playerInfo.playerLocLvl) -- players current level
  17.  
  18. currentMap= getMaps[playerData.playerInfo.playerLocLvl] -- Grab the Map at the players current Level
  19.  
  20. print ("IMPORTANT!!!!!!!!!!!!!!!!!" .. currentMap.levelSheet) -- what's the levelSheet ??
  21.  
  22. replaceItemInitemList = (#currentMap.itemList + 1) --<--- because I hate inpairs
  23.  
  24. sf = require('loq_sprite').newFactory( 'sheet_items', currentMap.levelSheet, 'sheet_npc')
  25. layout = require('layout_game').createLayout(sf)
  26.  
  27. return
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement