diff options
author | Joel 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) |
commit | c4960a7fd28798128a00564994065754fe5e836d (patch) | |
tree | 07e1a0113af3b4d8665805a9578b46cee9ceb21f | |
parent | 39f6ef545c58e6fca3c08fb76dc8560099ff5006 (diff) |
Added window icon.v0.2
-rw-r--r-- | ovpc.py | 6 | ||||
-rw-r--r-- | res/ovpc.png | bin | 0 -> 1948 bytes |
2 files changed, 4 insertions, 2 deletions
@@ -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 Binary files differnew file mode 100644 index 0000000..46baecf --- /dev/null +++ b/res/ovpc.png |