Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require "component"
- local fs = require "filesystem"
- local internet = require "internet"
- local shell = require "shell"
- local term = require "term"
- local gpu = require("component").gpu
- for f = 1, 25 do
- gpu.setBackground(3500+f*1270)
- gpu.fill(1,f*2-2,159,2," ")
- end
- gpu.setBackground(0x000000)
- gpu.setForeground(0xffffff)
- local CURRENTFOLDER = "/games/testgame/"
- local libsData = {
- {"http://pastebin.com/raw/BNWqP6Yd","doubleBuffering.lua"},
- {"http://pastebin.com/raw/j0BQDsWb","image.lua"},
- {"http://pastebin.com/raw/pudcaXMD","colorlib.lua"},
- {"http://pastebin.com/raw.php?i=E0SzJcCx","thread.lua"},
- }
- local dData = {
- {["paste"]="q2Emp.pic",["path"]="/image/slg.pic",["dtype"]=1}, -- image
- {["paste"]="sfS1d.pic",["path"]="/image/gigd1.pic",["dtype"]=1},
- {["paste"]="sfRYi.pic",["path"]="/image/gigd2.pic",["dtype"]=1},
- {["paste"]="sfRZ0.pic",["path"]="/image/gigd3.pic",["dtype"]=1},
- {["paste"]="sfRZS.pic",["path"]="/image/gigd4.pic",["dtype"]=1},
- {["paste"]="sfS0H.pic",["path"]="/image/gigd5.pic",["dtype"]=1},
- {["paste"]="sfS1d.pic",["path"]="/image/gigd6.pic",["dtype"]=1},
- {["paste"]="sfSaW.pic",["path"]="/image/gigd7.pic",["dtype"]=1},
- {["paste"]="sfSbn.pic",["path"]="/image/gigd8.pic",["dtype"]=1},
- {["paste"]="sfSbt.pic",["path"]="/image/itemnotex.pic",["dtype"]=1},
- {["paste"]="q2FnI.pic",["path"]="/sprpic/bush.pic",["dtype"]=1}, -- sprpic
- {["paste"]="q2Fo3.pic",["path"]="/sprpic/ghost.pic",["dtype"]=1},
- {["paste"]="q2Foi.pic",["path"]="/sprpic/greenslug.pic",["dtype"]=1},
- {["paste"]="q2FBf.pic",["path"]="/sprpic/guardian1.pic",["dtype"]=1},
- {["paste"]="q2FDO.pic",["path"]="/sprpic/nv_ghost.pic",["dtype"]=1},
- {["paste"]="sfTDg.pic",["path"]="/sprpic/player.pic",["dtype"]=1},
- {["paste"]="qaHhE.pic",["path"]="/sprpic/skelet1.pic",["dtype"]=1},
- {["paste"]="q2Gjk.pic",["path"]="/sprpic/spiritofplace.pic",["dtype"]=1},
- {["paste"]="q2GmU.pic",["path"]="/sprpic/stne_wall.pic",["dtype"]=1},
- {["paste"]="q2Go2.pic",["path"]="/sprpic/stoneturtle.pic",["dtype"]=1},
- {["paste"]="q2Gqi.pic",["path"]="/sprpic/swamptree.pic",["dtype"]=1},
- {["paste"]="q2GsF.pic",["path"]="/sprpic/tlp1.pic",["dtype"]=1},
- {["paste"]="q2GxV.pic",["path"]="/sprpic/venomous_ghoul.pic",["dtype"]=1},
- {["paste"]="q2GEW.pic",["path"]="/sprpic/vil1.pic",["dtype"]=1},
- {["paste"]="q2GGq.pic",["path"]="/sprpic/vil2.pic",["dtype"]=1},
- {["paste"]="q2GJv.pic",["path"]="/sprpic/vil3.pic",["dtype"]=1},
- {["paste"]="q2GN5.pic",["path"]="/sprpic/vil4.pic",["dtype"]=1},
- {["paste"]="sfStx.pic",["path"]="/sprpic/vil5.pic",["dtype"]=1},
- {["paste"]="sfSCm.pic",["path"]="/sprpic/vil6.pic",["dtype"]=1},
- {["paste"]="sfSUt.pic",["path"]="/sprpic/vil7.pic",["dtype"]=1},
- {["paste"]="sfTki.pic",["path"]="/sprpic/vil8.pic",["dtype"]=1},
- {["paste"]="sfTxS.pic",["path"]="/sprpic/vil9.pic",["dtype"]=1},
- {["paste"]="sfU4b.pic",["path"]="/sprpic/vil10.pic",["dtype"]=1},
- {["paste"]="qaH6O.pic",["path"]="/sprpic/gravel.pic",["dtype"]=1},
- {["paste"]="qaHbf.pic",["path"]="sprpic/iron_ore.pic",["dtype"]=1},
- {["paste"]="qaHdt.pic",["path"]="sprpic/copper_ore.pic",["dtype"]=1},
- {["paste"]="qaHeD.pic",["path"]="sprpic/wooden.pic",["dtype"]=1},
- {["paste"]="qaHfn.pic",["path"]="sprpic/wcoal.pic",["dtype"]=1},
- {["paste"]="sfSu8.pic",["path"]="sprpic/player_pck.pic",["dtype"]=1},
- {["paste"]="sfSsJ.pic",["path"]="/sprpic/zombie1.pic",["dtype"]=1},
- {["paste"]="sfSyA.pic",["path"]="/sprpic/dungeonexit.pic",["dtype"]=1},
- {["paste"]="sfSE2.pic",["path"]="/sprpic/sgolem.pic",["dtype"]=1},
- {["paste"]="sfSHL.pic",["path"]="/sprpic/vangen1.pic",["dtype"]=1},
- {["paste"]="sfSIU.pic",["path"]="/sprpic/zombie2.pic",["dtype"]=1},
- {["paste"]="sfSK4.pic",["path"]="/sprpic/graver.pic",["dtype"]=1},
- {["paste"]="sfSNu.pic",["path"]="/sprpic/dec_ghoul.pic",["dtype"]=1},
- {["paste"]="sfSOJ.pic",["path"]="/sprpic/skelet2.pic",["dtype"]=1},
- {["paste"]="sfSPW.pic",["path"]="/sprpic/skelet3.pic",["dtype"]=1},
- {["paste"]="sfSQG.pic",["path"]="/sprpic/skelet5.pic",["dtype"]=1},
- {["paste"]="sfSTr.pic",["path"]="/sprpic/vangen2.pic",["dtype"]=1},
- {["paste"]="sfSX3.pic",["path"]="/sprpic/zombie3.pic",["dtype"]=1},
- {["paste"]="sfSXN.pic",["path"]="/sprpic/zombie4.pic",["dtype"]=1},
- {["paste"]="sfT0k.pic",["path"]="/sprpic/phantom.pic",["dtype"]=1},
- {["paste"]="sfT4W.pic",["path"]="/sprpic/tportal_1.pic",["dtype"]=1},
- {["paste"]="sfT6D.pic",["path"]="/sprpic/tlpstone.pic",["dtype"]=1},
- {["paste"]="sfT96.pic",["path"]="/sprpic/skelet4.pic",["dtype"]=1},
- {["paste"]="sfTaO.pic",["path"]="/sprpic/flowering_tree.pic",["dtype"]=1},
- {["paste"]="sfTcn.pic",["path"]="/sprpic/redslug.pic",["dtype"]=1},
- {["paste"]="sfTdn.pic",["path"]="/sprpic/dirty_blobdemon.pic",["dtype"]=1},
- {["paste"]="sfTfA.pic",["path"]="/sprpic/d_maggot.pic",["dtype"]=1},
- {["paste"]="sfTgF.pic",["path"]="/sprpic/ironturtle.pic",["dtype"]=1},
- {["paste"]="sfThM.pic",["path"]="/sprpic/flamefiend.pic",["dtype"]=1},
- {["paste"]="sfTl8.pic",["path"]="/sprpic/zombie5.pic",["dtype"]=1},
- {["paste"]="sfTmh.pic",["path"]="/sprpic/deadghoul.pic",["dtype"]=1},
- {["paste"]="sfTnu.pic",["path"]="/sprpic/odecfaddi.pic",["dtype"]=1},
- {["paste"]="sfTp1.pic",["path"]="/sprpic/d_ghost.pic",["dtype"]=1},
- {["paste"]="sfTq2.pic",["path"]="/sprpic/evfotr.pic",["dtype"]=1},
- {["paste"]="sfTr1.pic",["path"]="/sprpic/twihnt.pic",["dtype"]=1},
- {["paste"]="sfTsm.pic",["path"]="/sprpic/vanlt1.pic",["dtype"]=1},
- {["paste"]="sfTvg.pic",["path"]="/sprpic/wraith_gudini.pic",["dtype"]=1},
- {["paste"]="sfTwY.pic",["path"]="/sprpic/vundf.pic",["dtype"]=1},
- {["paste"]="sfTzj.pic",["path"]="/sprpic/yellowslug.pic",["dtype"]=1},
- {["paste"]="sfTzY.pic",["path"]="/sprpic/m_golem.pic",["dtype"]=1},
- {["paste"]="sfTAT.pic",["path"]="/sprpic/bnkt.pic",["dtype"]=1},
- {["paste"]="sfTC3.pic",["path"]="/sprpic/csl1.pic",["dtype"]=1},
- {["paste"]="sfTEK.pic",["path"]="/sprpic/mogeghoul.pic",["dtype"]=1},
- {["paste"]="sfTG2.pic",["path"]="/sprpic/kt_ghost.pic",["dtype"]=1},
- {["paste"]="sfTH8.pic",["path"]="/sprpic/skelet6.pic",["dtype"]=1},
- {["paste"]="sfTHT.pic",["path"]="/sprpic/deighoul.pic",["dtype"]=1},
- {["paste"]="sfTKI.pic",["path"]="/sprpic/c_ghost.pic",["dtype"]=1},
- {["paste"]="sfTLD.pic",["path"]="/sprpic/mvalgr.pic",["dtype"]=1},
- {["paste"]="sfTMW.pic",["path"]="/sprpic/mvaltghoul.pic",["dtype"]=1},
- {["paste"]="sfTNS.pic",["path"]="/sprpic/evfmv.pic",["dtype"]=1},
- {["paste"]="sfTPC.pic",["path"]="/sprpic/rdwarrior.pic",["dtype"]=1},
- {["paste"]="sfTQL.pic",["path"]="/sprpic/zombie6.pic",["dtype"]=1},
- {["paste"]="sfTSt.pic",["path"]="/sprpic/zombie7.pic",["dtype"]=1},
- {["paste"]="sfTT9.pic",["path"]="/sprpic/mvalnecwraith.pic",["dtype"]=1},
- {["paste"]="sfTVj.pic",["path"]="/sprpic/chest1.pic",["dtype"]=1},
- {["paste"]="sfTW8.pic",["path"]="/sprpic/dohbenages.pic",["dtype"]=1},
- {["paste"]="sfTXe.pic",["path"]="/sprpic/bkmanwr.pic",["dtype"]=1},
- {["paste"]="sfTYC.pic",["path"]="/sprpic/udegefn.pic",["dtype"]=1},
- {["paste"]="sfTZ2.pic",["path"]="/sprpic/mvalfwarrior.pic",["dtype"]=1},
- {["paste"]="sfTZV.pic",["path"]="/sprpic/slrenow.pic",["dtype"]=1},
- {["paste"]="sfU0Y.pic",["path"]="/sprpic/mfghost.pic",["dtype"]=1},
- {["paste"]="sfU1W.pic",["path"]="/sprpic/mvalwr.pic",["dtype"]=1},
- {["paste"]="sfU3i.pic",["path"]="/sprpic/mvalwoodenspirit.pic",["dtype"]=1},
- {["paste"]="sfU64.pic",["path"]="/sprpic/mvalfsphere.pic",["dtype"]=1},
- {["paste"]="q2H06.pic",["path"]="/itempic/animal_fur.pic",["dtype"]=1}, -- itempic
- {["paste"]="q2H1m.pic",["path"]="/itempic/bn_armor.pic",["dtype"]=1},
- {["paste"]="q2H56.pic",["path"]="/itempic/bn_boots.pic",["dtype"]=1},
- {["paste"]="q2H6R.pic",["path"]="/itempic/bn_helmet.pic",["dtype"]=1},
- {["paste"]="q2Hlx.pic",["path"]="/itempic/bn_necklace.pic",["dtype"]=1},
- {["paste"]="q2HmX.pic",["path"]="/itempic/bn_pants.pic",["dtype"]=1},
- {["paste"]="q2Hos.pic",["path"]="/itempic/bone_necklace.pic",["dtype"]=1},
- {["paste"]="q2Hqd.pic",["path"]="/itempic/condensed_hp.pic",["dtype"]=1},
- {["paste"]="q2Hs9.pic",["path"]="/itempic/condensed_mp.pic",["dtype"]=1},
- {["paste"]="q2Hth.pic",["path"]="/itempic/copper_ingot.pic",["dtype"]=1},
- {["paste"]="q2Hwm.pic",["path"]="/itempic/copper_ore.pic",["dtype"]=1},
- {["paste"]="q2Hx5.pic",["path"]="/itempic/gravel.pic",["dtype"]=1},
- {["paste"]="q2Hyp.pic",["path"]="/itempic/iron_ingot.pic",["dtype"]=1},
- {["paste"]="q2HCf.pic",["path"]="/itempic/iron_ore.pic",["dtype"]=1},
- {["paste"]="q2HEb.pic",["path"]="/itempic/large_hp.pic",["dtype"]=1},
- {["paste"]="q2HFf.pic",["path"]="/itempic/large_mp.pic",["dtype"]=1},
- {["paste"]="q2HHV.pic",["path"]="/itempic/long_sword.pic",["dtype"]=1},
- {["paste"]="q2HJd.pic",["path"]="/itempic/medium_hp.pic",["dtype"]=1},
- {["paste"]="q2HK5.pic",["path"]="/itempic/medium_mp.pic",["dtype"]=1},
- {["paste"]="q2HNP.pic",["path"]="/itempic/rookies_armor.pic",["dtype"]=1},
- {["paste"]="q2HPA.pic",["path"]="/itempic/rookies_boots.pic",["dtype"]=1},
- {["paste"]="q2HUZ.pic",["path"]="/itempic/rookies_helmet.pic",["dtype"]=1},
- {["paste"]="q2HXA.pic",["path"]="/itempic/rookies_pants.pic",["dtype"]=1},
- {["paste"]="q2HYQ.pic",["path"]="/itempic/rough_fur.pic",["dtype"]=1},
- {["paste"]="q2I1Q.pic",["path"]="/itempic/rough_skin.pic",["dtype"]=1},
- {["paste"]="q2I3q.pic",["path"]="/itempic/rough_thread.pic",["dtype"]=1},
- {["paste"]="q2I55.pic",["path"]="/itempic/s_coal.pic",["dtype"]=1},
- {["paste"]="q2I8e.pic",["path"]="/itempic/small_hp.pic",["dtype"]=1},
- {["paste"]="q2I9z.pic",["path"]="/itempic/small_mp.pic",["dtype"]=1},
- {["paste"]="q2Ifw.pic",["path"]="/itempic/stone_hand_axe.pic",["dtype"]=1},
- {["paste"]="q2IgU.pic",["path"]="/itempic/teleportptr.pic",["dtype"]=1},
- {["paste"]="q2IiN.pic",["path"]="/itempic/w_spear.pic",["dtype"]=1},
- {["paste"]="q2IjQ.pic",["path"]="/itempic/wood.pic",["dtype"]=1},
- {["paste"]="q2Iom.pic",["path"]="/itempic/wooden_sword.pic",["dtype"]=1},
- {["paste"]="q2Ipa.pic",["path"]="/itempic/xbox.pic",["dtype"]=1},
- {["paste"]="sfUci.pic",["path"]="/itempic/ybox.pic",["dtype"]=1},
- {["paste"]="sfUfn.pic",["path"]="/itempic/cn_helmet.pic",["dtype"]=1},
- {["paste"]="sfUgl.pic",["path"]="/itempic/cn_armor.pic",["dtype"]=1},
- {["paste"]="sfUkG.pic",["path"]="/itempic/cn_pants.pic",["dtype"]=1},
- {["paste"]="sfUlp.pic",["path"]="/itempic/cn_boots.pic",["dtype"]=1},
- {["paste"]="sfUma.pic",["path"]="/itempic/cn_necklace.pic",["dtype"]=1},
- {["paste"]="sfUoL.pic",["path"]="/itempic/d_sword.pic",["dtype"]=1},
- {["paste"]="sfUpI.pic",["path"]="/itempic/d_spear.pic",["dtype"]=1},
- {["paste"]="sfUqG.pic",["path"]="/itempic/d_axe.pic",["dtype"]=1},
- {["paste"]="sfUrN.pic",["path"]="/itempic/oil1.pic",["dtype"]=1},
- {["paste"]="sfUsu.pic",["path"]="/itempic/steel_ingot.pic",["dtype"]=1},
- {["paste"]="sfUuf.pic",["path"]="/itempic/fiendmask.pic",["dtype"]=1},
- {["paste"]="sfUve.pic",["path"]="/itempic/afitem.pic",["dtype"]=1},
- {["paste"]="sfUxj.pic",["path"]="/itempic/brokenweapon.pic",["dtype"]=1},
- {["paste"]="sfUxZ.pic",["path"]="/itempic/elementpowder.pic",["dtype"]=1},
- {["paste"]="sfUyU.pic",["path"]="/itempic/elementfragment.pic",["dtype"]=1},
- {["paste"]="sfUAL.pic",["path"]="/itempic/greenelementcrystal.pic",["dtype"]=1},
- {["paste"]="sfUCK.pic",["path"]="/itempic/mwstone.pic",["dtype"]=1},
- {["paste"]="sfUE9.pic",["path"]="/itempic/mestone.pic",["dtype"]=1},
- {["paste"]="sfUFA.pic",["path"]="/itempic/dehpendant.pic",["dtype"]=1},
- {["paste"]="sfUH3.pic",["path"]="/itempic/e_sword.pic",["dtype"]=1},
- {["paste"]="sfUIv.pic",["path"]="/itempic/e_axe.pic",["dtype"]=1},
- {["paste"]="sfUJ2.pic",["path"]="/itempic/e_spear.pic",["dtype"]=1},
- {["paste"]="sfUKQ.pic",["path"]="/itempic/bn_ring.pic",["dtype"]=1},
- {["paste"]="sfULz.pic",["path"]="/itempic/cn_robe.pic",["dtype"]=1},
- {["paste"]="sfUMC.pic",["path"]="/itempic/cn_ring.pic",["dtype"]=1},
- {["paste"]="sfUNB.pic",["path"]="/itempic/bn_robe.pic",["dtype"]=1},
- {["paste"]="sfUOB.pic",["path"]="/itempic/mq_sword.pic",["dtype"]=1},
- {["paste"]="sfUPR.pic",["path"]="/itempic/zbox.pic",["dtype"]=1},
- {["paste"]="sfUQR.pic",["path"]="/itempic/klv_armor.pic",["dtype"]=1},
- {["paste"]="sfURO.pic",["path"]="/itempic/h_almred.pic",["dtype"]=1},
- {["paste"]="sfURO.pic",["path"]="/itempic/dn_armor.pic",["dtype"]=1},
- {["paste"]="sfUTU.pic",["path"]="/itempic/dn_boots.pic",["dtype"]=1},
- {["paste"]="sfUUL.pic",["path"]="/itempic/dn_helmet.pic",["dtype"]=1},
- {["paste"]="sfUVs.pic",["path"]="/itempic/dn_pants.pic",["dtype"]=1},
- {["paste"]="sfUWx.pic",["path"]="/itempic/dn_necklace.pic",["dtype"]=1},
- {["paste"]="sfUYq.pic",["path"]="/itempic/trte.pic",["dtype"]=1},
- {["paste"]="sfUZ5.pic",["path"]="/itempic/ek_robe.pic",["dtype"]=1},
- {["paste"]="sfUZB.pic",["path"]="/itempic/f_spear.pic",["dtype"]=1},
- {["paste"]="sfV0K.pic",["path"]="/itempic/f_axe.pic",["dtype"]=1},
- {["paste"]="sfV1F.pic",["path"]="/itempic/f_sword.pic",["dtype"]=1},
- {["paste"]="sfV2Q.pic",["path"]="/itempic/bshield.pic",["dtype"]=1},
- {["paste"]="sfV3J.pic",["path"]="/itempic/brokenplml.pic",["dtype"]=1},
- {["paste"]="sfV63.pic",["path"]="/itempic/mvblade.pic",["dtype"]=1},
- {["paste"]="sfV6T.pic",["path"]="/itempic/ironpearl.pic",["dtype"]=1},
- {["paste"]="sfV7T.pic",["path"]="/itempic/fgm_axe.pic",["dtype"]=1},
- {["paste"]="sfV8C.pic",["path"]="/itempic/fgm_sword.pic",["dtype"]=1},
- {["paste"]="sfV9Y.pic",["path"]="/itempic/fgm_spear.pic",["dtype"]=1},
- {["paste"]="sfVck.pic",["path"]="/itempic/mtrpr.pic",["dtype"]=1},
- {["paste"]="sfVdo.pic",["path"]="/itempic/bone1.pic",["dtype"]=1},
- {["paste"]="sfVfm.pic",["path"]="/itempic/fncring.pic",["dtype"]=1},
- {["paste"]="sfVgc.pic",["path"]="/itempic/fncnecklace.pic",["dtype"]=1},
- {["paste"]="sfVhI.pic",["path"]="/itempic/unimedal.pic",["dtype"]=1},
- {["paste"]="sGErhvZZ",["path"]="/itempic.data",["dtype"]=2}, -- pastebin
- {["paste"]="Rzkip5p0",["path"]="/translate.lang",["dtype"]=2},
- {["paste"]="Ynx9n4wg",["path"]="/game.lua",["dtype"]=2},
- }
- local fData = {
- CURRENTFOLDER.."image/",
- CURRENTFOLDER.."sprpic/",
- CURRENTFOLDER.."itempic/",
- CURRENTFOLDER.."saves/",
- }
- for f = 1, #fData do
- if not fs.exists(fData[f]) then
- fs.makeDirectory(fData[f])
- end
- end
- local downloadElementsCount = 0
- for f = 1, #dData do
- if not fs.exists(CURRENTFOLDER..dData[f]["path"]) then
- downloadElementsCount = downloadElementsCount + 1
- end
- end
- local function downloadFile(ssilka, filename)
- local f, reason = io.open(filename, "w")
- if not f then
- io.stderr:write("Failed opening file for writing: " .. reason)
- return
- end
- local result, response = pcall(internet.request, ssilka)
- if result then
- for chunk in response do
- f:write(chunk)
- end
- f:close()
- else
- io.write("failed.\n")
- f:close()
- io.stderr:write("HTTP request failed: " .. response .. "\n")
- end
- end
- local function downloadFromPuush(paste, shortpath)
- downloadFile("http://puu.sh/"..paste, CURRENTFOLDER..shortpath)
- end
- local function downloadFromPastebin(paste, shortpath)
- downloadFile("http://pastebin.com/raw.php?i="..paste, CURRENTFOLDER..shortpath)
- end
- local function centerText(text,y)
- term.setCursor(80-(require("unicode").len(text))/2,y)
- io.write(tostring(text))
- end
- local dopInfo = {
- "Разрешение экрана только 160х50",
- "DoubleBuffering lib by IgorTimofeev",
- "Image lib и colorlib by IgorTimofeev",
- "Thread lib by Zer0Galaxy",
- "Требования к вашему компьютеру:",
- "1.75 МБ и более оперативной памяти;",
- "300 КБ и более свободной памяти",
- "на жестком диске;",
- "Монитор и ведеокарта должны быть",
- "только 3-го уровня.",
- "Рекомендуется OpenComputers версии 1.6+"
- }
- for f = 1, #dopInfo do
- io.write(dopInfo[f],"\n")
- end
- centerText("Загрузка элементов Wirthe16 rpg game",11)
- for f = 1, #libsData do
- if not fs.exists("/lib/"..libsData[f][2]) then
- downloadFile(libsData[f][1],"/lib/"..libsData[f][2])
- centerText(string.rep(" ",60),12)
- centerText("/Загрузка из интернета библиотеки: "..libsData[f][2],12)
- end
- os.sleep()
- end
- local celem = 0
- for f = 1, #dData do
- if not fs.exists(CURRENTFOLDER..dData[f]["path"]) then
- celem = celem + 1
- if dData[f]["dtype"] == 1 then
- downloadFromPuush(dData[f]["paste"],dData[f]["path"])
- elseif dData[f]["dtype"] == 2 then
- downloadFromPastebin(dData[f]["paste"],dData[f]["path"])
- end
- centerText(string.rep(" ",60),13)
- centerText("Загружено "..celem.." файлов ("..math.ceil(celem*100/downloadElementsCount).."%)",13)
- end
- os.sleep()
- end
- centerText("Запустить игру? Y/N",14)
- while true do
- local ev = {require("event").pull()}
- if ev[1] == "key_up" then
- if ev[4] == 21 then
- dData, dopInfo = nil, nil
- shell.execute(CURRENTFOLDER.."game.lua")
- break
- elseif ev[4] == 49 then
- break
- end
- end
- end
- gpu.setBackground(0x000000)
- term.clear()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement