Development Team/Sugargame/Examples: Difference between revisions
Created page with '== Bouncing Ball == This is a simple Sugargame example which bounces a red ball across the screen. A Sugar toolbar provides Pause and Unpause functionality, demonstrating com…' |
m moved Walter is a wanker 12/Sugargame/Examples to Development Team/Sugargame/Examples over redirect: revert |
||
| (5 intermediate revisions by 4 users not shown) | |||
| Line 125: | Line 125: | ||
if event.type == pygame.QUIT: | if event.type == pygame.QUIT: | ||
return | return | ||
elif event.type == pygame.VIDEORESIZE: | |||
pygame.display.set_mode(event.size, pygame.RESIZABLE) | |||
# Move the ball | # Move the ball | ||
if not self.paused: | if not self.paused: | ||