Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. dumbs={}
  2. dumb1={x=100,y=100,status="READY",animation}
  3. dumb2={x=100,y=100,status="READY",animation}
  4. dumbs[1]=dumb1;
  5. dumbs[2]=dumb2;
  6.  
  7.  
  8. oldpad = 0x0
  9.  
  10. while true do
  11.     Screen.refresh()
  12.     Graphics.initBlend(TOP_SCREEN)
  13.     Graphics.fillRect(dumb[1].x, 100, dumb[1].y, 100, Color.new(255,255,255))  
  14.     Graphics.termBlend()
  15.  
  16.     Screen.flip()
  17.     Screen.waitVblankStart()
  18.     pad = Controls.read()
  19.     if Controls.check(pad, KEY_SELECT) and not Controls.check(oldpad, KEY_SELECT) then
  20.         Graphics.term() -- Term GPU before exiting
  21.         System.exit()
  22.     end
  23.     oldpad = pad
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement