rocketbyte file format
This commit is contained in:
parent
c98a01b23f
commit
495a01c6ff
3 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ local tilemap <const> = gfx.tilemap.new()
|
||||||
tilemap:setImageTable(tileTable)
|
tilemap:setImageTable(tileTable)
|
||||||
tilemap:setSize(100,100)
|
tilemap:setSize(100,100)
|
||||||
|
|
||||||
local level = json.decodeFile("levels/level1.json")
|
local level = json.decodeFile("levels/level1.rocketbyte")
|
||||||
for i = 1, #level.tiles, 1 do
|
for i = 1, #level.tiles, 1 do
|
||||||
tilemap:setTileAtPosition(level.tiles[i].x,level.tiles[i].y,level.tiles[i].t)
|
tilemap:setTileAtPosition(level.tiles[i].x,level.tiles[i].y,level.tiles[i].t)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue