diff options
Diffstat (limited to 'mathquwy1.py')
-rwxr-xr-x | mathquwy1.py | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/mathquwy1.py b/mathquwy1.py deleted file mode 100755 index 4e0dd58..0000000 --- a/mathquwy1.py +++ /dev/null @@ -1,83 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -import pygame -import usmpgames -import olpcgames -import game1 -import constants -from gettext import gettext as _ - -class MathQuwy(usmpgames.Application): - - def initialize(self): - usmpgames.Application.initialize(self) - size = constants.screen_size - if olpcgames.ACTIVITY: - size = olpcgames.ACTIVITY.game_size - self.set_screen( pygame.display.set_mode( size )) - pygame.mouse.set_visible(False) - - # even numbers congratulations message - background_congrats = "data/backgrounds/congrats.jpg" - congrats = usmpgames.InfoState( None, background_congrats ) - - # even numbers game - #even_numbers_game = game1.collectgame.CollectGame( "pares", congrats ) - #odd_numbers_game = game1.collectgame.CollectGame( "impares", congrats ) - evenodd_game = game1.collectgame.CollectGame( "", congrats ) - - # even numbers game state (tutorial) - background_tutorial = "data/backgrounds/tutorial.jpg" - even_numbers_tutorial = usmpgames.InfoState( evenodd_game, background_tutorial, "pares" ) - 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."""), - color = (0, 0, 0, 0), - pos = (660, 260), - rectsize = (380, 390)); - - # odd numbers game state (tutorial) - odd_numbers_tutorial = usmpgames.InfoState( evenodd_game, background_tutorial, "impares" ) - odd_numbers_tutorial.add_text2( - _(""" Instrucciones Juego Impares\n\nSuma puntos cogiendo las frutas\ncon numeros impares.\n\nEvita tocar las frutas con numeros\npares 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."""), - color = (0, 0, 0, 0), - pos = (660, 260), - rectsize = (380, 390)); - - # credits - credits = usmpgames.InfoState( None, background_tutorial ) - credits.add_text2( - _(""" Creditos\n\nProgramacion realizada por\nGrupo CIXOS-FIA\nUniversidad de San Martin de Porres\n\nGraficos realizados por\nGrafimedia\nFIADATA"""), - color = (0, 0, 0, 0), - pos = (660, 260), - rectsize = (380, 390)); - - # menu state - 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 ) - main_menu.add_menu_option(_("Creditos"), credits ) - main_menu.add_menu_option(_("Salir"), None ) - main_menu.pos = (750, 300) - - fonttitle = pygame.font.Font(None, 50) - main_menu.add_text2( - _(""" Quwy\n El Cuy Matematico 1"""), - color = (255, 25, 34, 0), - pos = (700, 190), - rectsize = (380, 390), - font = fonttitle); - - self.push_state( main_menu ) - - def shutdown(self): - pass - -# game application -def main(): - game = MathQuwy() - game.runLoop() - -if __name__ == "__main__": - main() |