Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Pocket Dimensions: 26 by 20
- slc = 1
- loading = paintutils.loadImage(".background") --Loading Screen
- game1 = paintutils.loadImage("2048.ico")
- screen = paintutils.loadImage(".backgroundmain")
- function loadOnBoot()
- paintutils.drawImage(loading, 1, 1)
- sleep(0.2)
- term.setCursorPos(2,14)
- term.setBackgroundColor(32)
- textutils.slowPrint("------------------------")
- sleep(0.2)
- term.clear()
- term.setCursorPos(1,1)
- term.setCursorPos(12,13)
- paintutils.drawImage(screen, 1, 1)
- paintutils.drawImage(game1, 12, 15)
- term.setCursorPos(12,16)
- print("2048")
- slc = 1
- end
- function appListen()
- if slc <= 0 then
- slc = 4
- elseif slc == 1 then
- paintutils.drawImage(screen, 1, 1)
- paintutils.drawImage(game1, 12, 15)
- term.setCursorPos(12,16)
- print("2048")
- elseif slc == 2 then
- elseif slc == 3 then
- elseif slc == 4 then
- elseif slc >= 5 then
- slc = 0
- end
- end
- loadOnBoot()
- while true do
- event = {os.pullEventRaw()}
- if event[1] == "key" then
- if event[2] == 205 then
- slc = slc + 1
- if slc == 5 and event[2] == 205 then
- slc = 1
- end
- appListen()
- elseif event[2] == 203 then
- slc = slc - 1
- if slc == 0 and event[2] == 203 then
- slc = 4
- end
- appListen()
- end
- if event[2] == 57 then
- print("Installing App #", slc)
- if slc == 1 then
- -- check(rom,"2048game")
- if fs.exists("2048game") then
- shell.run("2048game")
- else
- shell.run("pastebin","get","tY191fCY","2048game")
- shell.run("pastebin","get","UGAwSwg4","icon")
- term.clear()
- loadOnBoot()
- term.setCursorPos(1,13)
- term.setBackgroundColor(128)
- print("App Installed!")
- end
- elseif slc == 2 then
- elseif slc == 3 then
- elseif slc == 4 then
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement