diff options
author | Mateu Batle <mbatle@skynet.site> | 2010-08-25 17:59:07 (GMT) |
---|---|---|
committer | Mateu Batle <mbatle@skynet.site> | 2010-08-25 17:59:07 (GMT) |
commit | e0b326a5c83f0b96b61bb00dcf7689fb85a9aab1 (patch) | |
tree | a0a549f1c349bd0d03ea089c8e1038bbf7635369 /about.py |
Commit first version of ski on numbers
Diffstat (limited to 'about.py')
-rwxr-xr-x | about.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/about.py b/about.py new file mode 100755 index 0000000..8dae927 --- /dev/null +++ b/about.py @@ -0,0 +1,45 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import pygame, runEsquiador +import txtlib +from pygame.locals import * +from runEsquiador import * +from constants import * + +def mainAbout(): + + pygame.init() + + screen = pygame.display.set_mode(screen_size) + + text = txtlib.Text((screen_size[0]-200,screen_size[1]-200), './fonts/ice_sticks.ttf') + text.text = '''Esquiador + \nJuego matematico para diferenciar + numeros pares de impares + \nAutores: + Mateu Batle + Ricardo Flores + Eduardo Rodriguez + \nJuego desarrollado en Python, Pygame y + algunas librerias de terceros.''' + + text.add_style(0, 132, txtlib.SIZE,(screen_size[0]*25)/800) + + + text.update() + + screen.blit(text.area, (100, 100)) + pygame.display.flip() + + while True: + + for event in pygame.event.get(): + if event.type == pygame.QUIT: + exit(0) + if event.type == KEYDOWN: + if event.key == K_ESCAPE: + # Cierra el juego presionando escape + #exit(0) + #pygame.display.flip() + runEsquiador.main() |