Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not shell.run("ESGraphics") then
- shell.run("pastebin","get","kDm3zq5E","ESGraphics")
- shell.run("ESGraphics")
- end
- if not shell.run("ESDataHelp") then
- shell.run("pastebin","get","ebrRi2d0","ESDataHelp")
- shell.run("ESDataHelp")
- end
- if not shell.run("ESMain") then
- shell.run("pastebin","get","mrW2d4cP","ESMain")
- shell.run("ESMain")
- end
- function limit(n,n1) -- 1=<n=<n1
- local x=math.min(n,n1)
- local nx=math.max(1,x)
- return nx
- end
- function update()
- if start==1 then
- updateall() end
- end
- function draw()
- for z=1,mapZ do
- gh.rectangle("line",z*mapZ+z,2,mapX+1,mapY+1,8,8," " )
- for y=1,mapY do
- for x=1,mapX do
- if map[x][y][z]==-2 then else
- gh.point(x+mapZ*z+z,y+2,1,12,"#")
- end
- end
- end
- end
- gh.text(1,10,1,0,"fps:"..fps.update().." power:"..npower)
- gh.text(1,11,1,0,"loop:"..loop.." fail step:"..failstep.." good step:"..loop-failstep)
- resetmap()
- end
- while true do
- r.systemupdate()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement