Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mathquwy.py
diff options
context:
space:
mode:
authorMateu Batle <mateu.batle@collabora.co.uk>2010-11-11 05:09:24 (GMT)
committer Mateu Batle <mateu.batle@collabora.co.uk>2010-11-11 05:09:24 (GMT)
commit80a86f5984710328599167fe9187557aa103a77c (patch)
treefad7691b0b00175155a79275dfa42f1224880aee /mathquwy.py
parentb742088d3e4662df573caebc77a7f7d4e2eb3f06 (diff)
Delayed load of backgrounds
Implementation of basic resource system in application
Diffstat (limited to 'mathquwy.py')
-rwxr-xr-xmathquwy.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mathquwy.py b/mathquwy.py
index 3861a9c..47c74df 100755
--- a/mathquwy.py
+++ b/mathquwy.py
@@ -20,7 +20,7 @@ class MathQuwy(usmpgames.Application):
pygame.mouse.set_visible(False)
# even numbers congratulations message
- background_congrats = pygame.transform.scale( pygame.image.load("data/backgrounds/congrats.jpg"), size)
+ background_congrats = "data/backgrounds/congrats.jpg"
congrats = usmpgames.InfoState( None, background_congrats )
# even numbers game
@@ -28,7 +28,7 @@ class MathQuwy(usmpgames.Application):
odd_numbers_game = game1.collectgame.CollectGame( "impares", congrats )
# even numbers game state (tutorial)
- background_tutorial = pygame.transform.scale( pygame.image.load("data/backgrounds/tutorial.jpg"), size)
+ background_tutorial = "data/backgrounds/tutorial.jpg"
even_numbers_tutorial = usmpgames.InfoState( even_numbers_game, background_tutorial )
even_numbers_tutorial.add_text2(
_("""Instrucciones Juego Pares\n\nSuma puntos cogiendo las frutas\ncon numeros pares.\n\nEvita tocar las frutas con numeros\nimpares o te restaran puntos.\n\nMueve al cuy Quwy con las fechas.\n\nEvita los peligros como el agua y\notros animales.\n\nPulsa una tecla para jugar."""),
@@ -91,7 +91,7 @@ class MathQuwy(usmpgames.Application):
rectsize = (380, 390));
# menu state
- background_menu = pygame.transform.scale( pygame.image.load("data/backgrounds/menu.jpg"), size)
+ background_menu = "data/backgrounds/menu.jpg"
main_menu = usmpgames.MenuState( background_menu )
main_menu.add_menu_option(_("Pares"), even_numbers_tutorial )
main_menu.add_menu_option(_("Impares"), odd_numbers_tutorial )