Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArg = {...} --Map, Gamemode, AI
- local Map = "n"
- local Player_Cords = {1,1}
- local AI_Char = {}
- local AI_Cords = {}
- local GameMode = ""
- local function Clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- local function DrawMap()
- local file = fs.open(fs.combine("os/System/Programs/BoldFighter/Maps",Map..".txt"),"r")
- local Content
- local X = 0
- local Y = 0
- repeat
- Content = file.readLine()
- for i = 1, string.len(Content) do
- paintutils.drawPixel(X + Player_Cords[1], Y + Player_Cords[2],string.sub(i,i))
- X = X + 1
- end
- X = 0
- Y = Y + 1
- until Content == nil
- end
- Clear()
- DrawMap()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement