Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Development Team/Sugargame/Examples
(view source)
Revision as of 12:24, 21 November 2009
133 bytes added
,
12:24, 21 November 2009
→TestGame.py
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:
Wade
273
edits