blob: 2c758326beec002a06749f42d42c6574b0103e83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import pygame
import txtlib
from pygame.locals import *
from constants import *
from gettext import gettext as _
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()
return
|