Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function loadMap()
- --[[
- _L _L
- [__]______[__]
- || o ||
- || __/\_ ||
- || -MAP ||
- || LOAD ||
- ||________||
- [__] [__]
- T T
- ]]
- local jsonDecode2 = load(playerData.playerInfo.playerLocation .. GameDisk.SaveDisk) -- load business
- getMaps = json.decode(jsonDecode2) -- decode the business
- print ("IMPORTANT-------------> check this".. playerData.playerInfo.playerLocLvl) -- players current level
- currentMap= getMaps[playerData.playerInfo.playerLocLvl] -- Grab the Map at the players current Level
- print ("IMPORTANT!!!!!!!!!!!!!!!!!" .. currentMap.levelSheet) -- what's the levelSheet ??
- replaceItemInitemList = (#currentMap.itemList + 1) --<--- because I hate inpairs
- sf = require('loq_sprite').newFactory( 'sheet_items', currentMap.levelSheet, 'sheet_npc')
- layout = require('layout_game').createLayout(sf)
- return
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement