Development Team/Sugargame/Examples: Difference between revisions

Wade (talk | contribs)
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…'
 
Wade (talk | contribs)
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: