blob: 5c95cbd4ebc40e3e55a7f226b3e8ce076caf6dcb (
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
46
47
48
|
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import pygame
import txtlib
from pygame.locals import *
from constants import *
def mainHelp():
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 = '''Ayuda de Esquiador
\nJuego matematico para diferenciar
numeros pares de impares.
\n Debes ayudar al esquiador a pasar por las
banderas pares o impares, dependiendo del juego.
Puedes desplazarte por todo el circuito,
moverte a la izquierda o a la derecha
avanzar o detenerte lo suficiente para
esquivar obstaculos o para pasar por las banderas
con puntaje.
Ten cuidado con chocar con otros elementos
pues tu puntaje disminuira. Suerte!
'''
text.add_style(0, 6000, txtlib.SIZE,(screen_size[0]*25)/1000)
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
|