Advertisement
electronic_steve

ccs : test

Mar 14th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | None | 0 0
  1. if not shell.run("ESGraphics") then
  2. shell.run("pastebin","get","kDm3zq5E","ESGraphics")
  3. shell.run("ESGraphics")
  4.  end
  5.  
  6. if not shell.run("ESDataHelp") then
  7. shell.run("pastebin","get","ebrRi2d0","ESDataHelp")
  8. shell.run("ESDataHelp")
  9.  end
  10.  if not shell.run("ESMain") then
  11. shell.run("pastebin","get","mrW2d4cP","ESMain")
  12. shell.run("ESMain")
  13.  end
  14. function limit(n,n1) -- 1=<n=<n1
  15. local x=math.min(n,n1)
  16. local nx=math.max(1,x)
  17. return nx
  18. end
  19.  
  20.  
  21.  
  22.  
  23. function update()
  24. if start==1 then
  25.  updateall() end
  26. end
  27.  
  28. function draw()
  29.  
  30.  
  31. for z=1,mapZ do
  32.  gh.rectangle("line",z*mapZ+z,2,mapX+1,mapY+1,8,8," " )
  33. for y=1,mapY do
  34. for x=1,mapX do
  35. if  map[x][y][z]==-2 then else
  36.  
  37. gh.point(x+mapZ*z+z,y+2,1,12,"#")
  38. end
  39. end
  40. end
  41.  
  42.  
  43.  
  44.  
  45. end
  46. gh.text(1,10,1,0,"fps:"..fps.update().." power:"..npower)
  47. gh.text(1,11,1,0,"loop:"..loop.." fail step:"..failstep.." good step:"..loop-failstep)
  48.  resetmap()
  49. end
  50.  
  51. while true do
  52. r.systemupdate()
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement