Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Visual Layout
- vlayout = {
- {"[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]"},
- {"[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]"},
- {"[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]"},
- {"[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]"},
- {"[ ]","[ ]","[ ]","[ ]","[X]","[X]","[ ]","[ ]","[ ]","[ ]"},
- {"[ ]","[ ]","[ ]","[ ]","[X]","[X]","[ ]","[ ]","[ ]","[ ]"},
- {"[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]"},
- {"[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]"},
- {"[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]"},
- {"[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]","[ ]"}
- }
- function drawMap(tposR, tposC)
- vlayout[tposR][tposC] = "[@]"
- for k,v in pairs(vlayout) do
- for s,j in pairs(vlayout[k]) do
- write(j)
- end
- write("\n")
- end
- end
- drawMap(1,2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement