--[[pod_format="raw",created="2024-03-20 20:41:53",modified="2024-03-21 02:16:41",revision=748]] p = { title = "GAMES", -- the title displayed on the tab g = create_gui({x=0,y=0, width=explorer.current_width,height=300,--this height determines scroll and page height fgcol = 0x090d}), init = function(self,explorer) self.g:attach_button({x=0,y=100,label="Train Journey (PICO-8)",-- here's attach button, it supports and uses the gui library tap=function() explorer:open_page("https://raw.githubusercontent.com/May0san/piconetdemo/main/trainjourney.lua") end }) self.g:attach_button({x=0,y=120,label="3D Renderer", tap=function() explorer:open_page("https://raw.githubusercontent.com/May0san/piconetdemo/main/render3d.lua")--opens a page. can be any link, but won't load a page unless it's a lua file like this end }) end, get_gui = function(self,explorer) return self.g end, update = function(self,explorer) end, draw = function(self,explorer) -- use this to draw, write text, etc. You can use cls() without issues as well if you want a different bg cls() print("\n\nWELCOME to my\nCOOL GAMES WEBSITE", 0,0,7) print("Play my AWESOME games:", 0, 80,7) self.mygif:draw(2,2,16,16,3,0)-- you need to specify position, speed, draw width/height and alpha when drawing gif self.mygif:draw(18,2,16,16,3,0) self.mygif:draw(34,2,16,16,3,0) self.mygif:draw(50,2,16,16,3,0) self.smile:draw(120,74,16,16,1,0) end, --gifs use a pod. you can copy it directly from the gfx editor, and keep only the string. The format is one frame tall by however many frames you have long mygif = new_gif("b64:bHo0AGIBAADTAwAA8zBweHUAQyhgAQAAEAAAAATw--_1AZ8QYA8gAW8QcBFOkB4hsAEfILARwB0BsCEekE4RcG4BDVCeAUABnlANAW4jAHkeDdAe0A0eIgDwEjABrlANAX5gEV6AHjGgHh2wHsAdHqAxHoBeEWB_AQ1AriIAGEAiAB-AIgAA-wwOeA8YDlANAQ5IDA5gEQ4oDA6AHgEcAaAeAg1RABLxCw0CHqABHAEegA4MKA4RYA4MSA4BDUAOeAwOXQAfDFwA-g_1AS4P_QE1IHEe4wAgQQ3jACAhDeMALx0BTgAYIAEd4QAgDSHhACENQeEAIHEeWAAgYS5YAO8xDR5gEQ4RDR6AHgENEVgAGSANEVgAIBEeWAAgMR5YAHRhLgEwAZ5gDwMXMU4ADzEDAQhOADcxHoAiAJGOcA0BXoARPqBTAxPAUwPioD4RgF4BDWCOAVABjmAiAAGYAyQdwJcDBCIAUAHw--_2", 22), -- params (excluding the pod) are: number of frames smile = new_gif("b64:bHo0AM0AAAAFAQAA8wVweHUAQyAwEARAWZBZkFlwGVoZUAQAU0AJmgkwBADVIAkqADoAKgkQCboJEAwA1RogGiAaCRAJCiA6IAoQAOIACSogGiAqGToQGhA6GQwAAgYAUxogOiAaDABzOgA6ADoZ2ggAWRoAegAaBgA0CrAKBADwBCkaAA8YOA4AGjkKAHgACjkaAA4OAMEZABkaAD4AGhkQGQoSADQKGRASANIpGjAaKRApCgA_AAopDgDwDCA5OjkwKQowCikwOTo5QJlQmVCZcFmQWZBZQA==", 3) }