Toggle Navigation
Hatchery
Eggs
Csajozos badge
__init__.py
Login
Register
__init__.py
Content
import system, badge, ugfx, sys import random def action_exit(pushed): if (pushed): #ugfx.deinit() # go back to the home screen system.home() def clear(): ugfx.clear(ugfx.WHITE) # easydraw.msg("SEND NUDES") def action_clear(pushed): if (pushed): clear() def main_worker(): clear() # do the magick endlesly while True: x1 = random.randrange(128) y1 = random.randrange(64) x2 = random.randrange(128) y2 = random.randrange(64) ugfx.line(x1, y1, x2, y2, ugfx.BLACK) ugfx.string(1,26,"SEND NUDES","Roboto_Regular12",ugfx.WHITE) ugfx.flush() def main(): badge.init() ugfx.input_init() ugfx.input_attach(ugfx.BTN_B, action_exit) ugfx.input_attach(ugfx.JOY_DOWN, action_clear) ugfx.input_attach(ugfx.BTN_START, action_clear) main_worker() sys.stdin.read(1) #Wait for any key action_exit(True) main()