![Strafe Strafe](https://i.ytimg.com/vi/Iy9VPTWyLh0/hqdefault.jpg)
Apr 18th, 2015
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- -- This program needs the Surface API 1.5.3 in the strafedata directory.
- -- If the Surface API 1.5.3 doesn't exist it will try to download it.
- -- You can find info and documentation on these pages:
- -- You may use this in your ComputerCraft OSes and modify it without asking.
- -- However, you may not publish this program under your name without asking me.
- -- If you have any suggestions, bug reports or questions then please send an email to:
- localTable={}-- NOTE: use {n = 0} in Lua-5.0
- local last_end =1
- while s do
- table.insert(Table,cap)
- last_end = e+1
- end
- cap = pString:sub(last_end)
- end
- end
- function install(game)
- fs.delete(dir.'strafedata/'.game)
- end
- local i = split(online[game].install,'|')
- term.setBackgroundColor(colors.black)
- term.clear()
- for k,v inpairs(i)do
- shell.run(({v:gsub('?', dir.'strafedata/'.game)})[1])
- shell.run('cd /'._d)
- online[game].banner = online[game].banner:saveString()
- local f = fs.open(dir.'strafedata/'.game.'.tab','w')
- f.close()
- online[game].banner = surface.loadString(online[game].banner)
- updateGames()
- end
- function updateGames()
- for k,v inpairs(fs.list(dir.'strafedata'))do
- local name = v:sub(1,#v -4)
- games[name]= textutils.unserialize(f.readAll())
- games[name]['banner']= surface.loadString(games[name]['banner'])
- end
- end
- function updateOnline()
- http.request('http://pastebin.com/raw.php?i=m9YK1tke')
- width, height = term.getSize()
- offset =math.floor((width - rows *25+1)/2)
- end
- function update()
- end
- function draw()
- if state 1then
- elseif state 2then
- end
- surf:drawLine(1,1, width,1,' ', colors.lightGray, colors.black)
- surf:drawText(1,1,'Strafe')
- surf:drawText(9,1,'Installed Games Download Games',nil, colors.blue)
- surf:drawText(1,1,'Installed Download',nil, colors.blue)
- surf:drawPixel(width,1,'X', colors.red, colors.white)
- surf:drawPixel(width, height,'v')
- end
- function drawGames()
- for k,v inpairs(games)do
- surf:drawSurface((i % rows)*25+1+ offset,math.floor(i / rows)*6+3- gamesOffset, v.banner)
- surf:drawText((i % rows)*25+1+ offset,math.floor(i / rows)*6+7- gamesOffset,'Play Delete', colors.black, colors.white)
- end
- local i =0
- surf:drawSurface((i % rows)*25+1+ offset,math.floor(i / rows)*6+3- onlineOffset, v.banner)
- if games[k]then
- str ='Installed'
- str ='Update'
- end
- surf:drawText((i % rows)*25+1+ offset,math.floor(i / rows)*6+7- onlineOffset, str, colors.black, colors.white)
- end
- if y 1then
- term.setTextColor(colors.white)
- term.setCursorPos(1,1)
- running =false
- if x >=9and x <=23then
- state =1
- updateOnline()
- end
- if x >=1and x <=9then
- state =1
- updateOnline()
- end
- elseif x width and y 2then
- gamesOffset = gamesOffset -6
- onlineOffset = onlineOffset -6
- elseif x width and y height then
- gamesOffset = gamesOffset +6
- onlineOffset = onlineOffset +6
- elseif y >1and state 1then
- local id =math.floor((y + gamesOffset -2)/6)* rows
- id = id +math.floor((x - offset)/25)
- local xx =(x - offset)%25
- local i =0
- if id i then
- local d = shell.dir()
- shell.run('cd /'.dir.'strafedata/'.k.'/'.v.launchdir)
- term.setBackgroundColor(colors.black)
- term.clear()
- shell.run('cd /'.d)
- updateSize()
- fs.delete(dir.'strafedata/'.k)
- updateGames()
- end
- end
- local id =math.floor((y + onlineOffset -2)/6)* rows
- id = id +math.floor((x - offset)/25)
- local xx =(x - offset)%25
- local i =0
- if id i then
- install(k)
- if games[k].version ~= v.version then
- fs.delete(dir.'strafedata/'.k.'.tab')
- end
- end
- end
- end
- dir = fs.getDir(shell.getRunningProgram()).'/'
- fs.delete(dir.'strafedata')
- end
- ifnot fs.exists(dir.'strafedata/surface')or fs.isDir(dir.'strafedata/surface')then
- local d = shell.dir()
- shell.run('pastebin get J2Y288mW surface')
- end
- updateSize()
- local _off =math.floor(width /2) surf:drawText(1,1,'Made by CrazedProgrammer')local cp = surface.loadString('_00100010208f208f208f208f208f208f208f208f208f208f208f208f208f208f208f208f208f20ff20ff20ff20ff20ff20ff20ff20ff20ff20ff20ff20ff20ff20ff207f208f20ff20ff200f200f20ff200f200f20ff20ff20ff20ff20ff20ff20ff207f208f20ff200f20ff20ff20ff200f20ff200f20ff20ff20ff20ff20ff20ff207f208f20ff200f20ff20ff20ff200f200f20ff20ff20ff20ff20ff20ff20ff207f208f20ff200f20ff20ff20ff200f20ff20ff20ff20ff20ff20ff20ff20ff207f208f20ff20ff200f200f20ff200f20ff20ff20ff200f200f200f20ff20ff207f208f20ff20ff20ff20ff20ff20ff20ff20ff20ff20ff20ff20ff20ff20ff207f208f207f207f207f207f207f207f207f207f207f207f207f207f207f207f207f20_720_720_720_720_720_720_72077207720_720_720_720_720_720_720_720_720_720_720_720_720_7207720772077207720_720_720_720_720_720_720872087208720872087208720872087208720872087208720872087208720872087208720872087208720872087208720872087208720872087208720872077208720772077207720772077208720772077208720772077208720b72087207720872087208720872087208720872087208720872087208720872087208720772077207720772077207720772077207720772077207720772077207720772077')for i=1,16,1dolocal surf2 = surface.create(i, i) surf2:drawSurfaceScaled(1,1, i, i, cp) surf:fillRect(1,2, width, height,nil, colors.black) surf:drawSurfaceRotated(_off,10, i /2, i /2,4- i /4, surf2) surf:render()os.sleep(0)endfor i=1,4,1do surf:fillRect(1,2, width, height,nil, colors.black) surf:drawSurface(_off -7,3, cp) surf:drawLine(_off -7, i *4, _off + i *4-11,3,nil, colors.white) surf:drawLine(_off -7,1+ i *4, _off + i *4-10,3,nil, colors.white) surf:drawLine(_off -7,2+ i *4, _off + i *4-9,3,nil, colors.white) surf:render()os.sleep(0)endfor i=1,4,1do surf:fillRect(1,2, width, height,nil, colors.black) surf:drawSurface(_off -7,3, cp) surf:drawLine(_off + i *4-11,18, _off +8, i *4,nil, colors.white) surf:drawLine(_off + i *4-10,18, _off +8,1+ i *4,nil, colors.white) surf:drawLine(_off + i *4-9,18, _off +8,2+ i *4,nil, colors.white) surf:render()os.sleep(0)end
- online ={}
- state =1
- onlineOffset =0
- timer =os.startTimer(0)
- local e ={os.pullEvent()}
- timer =os.startTimer(0)
- elseif e[1]'mouse_click'then
- elseif e[1]'mouse_scroll'then
- if state 1and gamesOffset + e[2]*6>=0then
- elseif state 2and onlineOffset >0then
- end
- if state 1then
- else
- end
- elseif e[1]'term_resize'then
- elseif e[1]'http_success'and e[2]'http://pastebin.com/raw.php?i=m9YK1tke'then
- e[3].close()
- v.banner = surface.loadString(v.banner)
- end
RAW Paste Data
Strafe 1996
2 days ago The Strafe RGB MK.2 is a wired keyboard and offers dedicated media and volume controls in the upper right, a USB pass-through port, and alternate keycap sets. Strafe Outerwear creates modern, technical mountain apparel and outerwear that doesn't compromise performance, quality, or style. Based in Aspen, Colorado. Gaming Gear Streaming. CORSAIR STRAFE MK.2 RGB CHERRY MX SILENT. Premium aluminum construction, customizable RGB lighting and immersive 7.1 surround sound. 1.0.1 - allele frequencies can now be computed and downloaded for each population separately; 1.0.0 - STRAF release; Data policy. Typeface 2 6 4. Sparkle 2 0 5 download free. Any file uploaded to STRAF is deleted when the session is closed. 8dio agitato sordino strings kontakt download free. No data is retained on the server. FULL Uncut 'Aang vs. Fire Lord Ozai Final Battle' ? Avatar - Duration: 13:51. Avatar: The Last Airbender Recommended for you.