Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/data/graphics/snow
diff options
context:
space:
mode:
Diffstat (limited to 'data/graphics/snow')
-rw-r--r--data/graphics/snow11
1 files changed, 6 insertions, 5 deletions
diff --git a/data/graphics/snow b/data/graphics/snow
index 4fc30f2..efcb28f 100644
--- a/data/graphics/snow
+++ b/data/graphics/snow
@@ -1,3 +1,4 @@
+# snow
import pippy, pygame, sys
from pygame.locals import *
@@ -6,17 +7,17 @@ from random import *
# always need to init first thing
pygame.init()
-# XO screen is 1200x900
-size = width, height = 1200, 900
-
# create the window and keep track of the surface
# for drawing into
-screen = pygame.display.set_mode(size)
+screen = pygame.display.set_mode()
+
+# ask for screen's width and height
+width, height = screen.get_size()
# turn off the cursor
pygame.mouse.set_visible(False)
-bg_color = (0,0,0)
+bg_color = (0, 0, 0)
xs = []
ys = []