Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dumbs={}
- dumb1={x=100,y=100,status="READY",animation}
- dumb2={x=100,y=100,status="READY",animation}
- dumbs[1]=dumb1;
- dumbs[2]=dumb2;
- oldpad = 0x0
- while true do
- Screen.refresh()
- Graphics.initBlend(TOP_SCREEN)
- Graphics.fillRect(dumb[1].x, 100, dumb[1].y, 100, Color.new(255,255,255))
- Graphics.termBlend()
- Screen.flip()
- Screen.waitVblankStart()
- pad = Controls.read()
- if Controls.check(pad, KEY_SELECT) and not Controls.check(oldpad, KEY_SELECT) then
- Graphics.term() -- Term GPU before exiting
- System.exit()
- end
- oldpad = pad
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement