Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/game1/resources.py
diff options
context:
space:
mode:
authorMateu Batle <mateu.batle@collabora.co.uk>2010-10-27 17:40:28 (GMT)
committer Mateu Batle <mateu.batle@collabora.co.uk>2010-10-27 17:40:28 (GMT)
commit0018a9e211ebbe74d371339a70edc0d36c4fc99f (patch)
treeddfd93d0713c615ed70dbf869747b55b94791af8 /game1/resources.py
Initial import of game1 and game2 in math quwy
Diffstat (limited to 'game1/resources.py')
-rwxr-xr-xgame1/resources.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/game1/resources.py b/game1/resources.py
new file mode 100755
index 0000000..f620892
--- /dev/null
+++ b/game1/resources.py
@@ -0,0 +1,25 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+
+from pygame import *
+from constants import *
+
+# Images used for the player
+player_image_normal = transform.scale( image.load("data/quwy.png"), sprite_size)
+player_image_happy = transform.scale( image.load("data/quwy_happy.png"), sprite_size)
+player_image_sad = transform.scale( image.load("data/quwy_sad.png"), sprite_size)
+player_image_impact = transform.scale( image.load("data/quwy_impact.png"), sprite_size)
+player_image_impact_hard = transform.scale( image.load("data/quwy_impact_hard.png"), sprite_size)
+
+# Sounds
+music_background = None
+sound_good_choice = mixer.Sound('./data/sounds/yujui_short.ogg')
+sound_bad_choice = mixer.Sound('./data/sounds/oops.ogg')
+sound_danger = mixer.Sound('./data/sounds/ohoo.ogg')
+sound_collide = mixer.Sound('./media/sounds/gameover.wav')
+#music_background = mixer.Sound('./media/sounds/menumusic.ogg')
+#sound_good_choice = mixer.Sound('./media/sounds/aplause.ogg')
+#sound_bad_choice = mixer.Sound('./media/sounds/gameover.wav')
+#sound_danger = mixer.Sound('./media/sounds/gameover.wav')
+#sound_collide = mixer.Sound('./media/sounds/gameover.wav')
+sound_game_over = mixer.Sound('./media/sounds/gameover.wav')