Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Stanley <joel.stanley@adelaide.edu.au>2009-01-28 04:41:17 (GMT)
committer Joel Stanley <joel.stanley@adelaide.edu.au>2009-01-28 04:41:17 (GMT)
commitc4960a7fd28798128a00564994065754fe5e836d (patch)
tree07e1a0113af3b4d8665805a9578b46cee9ceb21f
parent39f6ef545c58e6fca3c08fb76dc8560099ff5006 (diff)
Added window icon.v0.2
-rw-r--r--ovpc.py6
-rw-r--r--res/ovpc.pngbin0 -> 1948 bytes
2 files changed, 4 insertions, 2 deletions
diff --git a/ovpc.py b/ovpc.py
index 4e1ef00..2e72415 100644
--- a/ovpc.py
+++ b/ovpc.py
@@ -21,6 +21,8 @@ batch = pyglet.graphics.Batch()
pyglet.resource.path = ['res']
pyglet.resource.reindex()
+window.set_icon(pyglet.resource.image("ovpc.png"))
+
child_death_files = glob.glob1("res", "child-death[012]*.png")
child_death_files.sort()
child_death = pyglet.image.Animation.from_image_sequence(
@@ -96,7 +98,7 @@ def update(dt):
if raptor.y-raptor.height*0.5 > child.y+child.height*0.5:
continue
-
+
if (raptor.x-child.x) < (child.width+raptor.width)*0.5-10:
raptor.x += dt * 150
@@ -116,7 +118,7 @@ def reset_enemy(raptor):
raptor.scale = 0.5
raptor.x = window.width + randrange(0,window.width*2)
raptor.y = window.height * random()
-
+
child.scale = 0.5
pyglet.clock.schedule(update)
pyglet.app.run()
diff --git a/res/ovpc.png b/res/ovpc.png
new file mode 100644
index 0000000..46baecf
--- /dev/null
+++ b/res/ovpc.png
Binary files differ