-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpaso1.py
More file actions
42 lines (27 loc) · 811 Bytes
/
paso1.py
File metadata and controls
42 lines (27 loc) · 811 Bytes
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
# -*- encoding: utf-8 -*-
#
# Creamos las escenas y el menú del juego
import pilas
from pilas.escena import Normal
class Escena_Juego(Normal):
""" Escena principal del juego. """
def iniciar(self):
# Cargamos el fondo del juego.
pilas.fondos.Pasto()
class Escena_Menu(Normal):
""" Escena del menú del juego. """
def iniciar_juego(self):
pilas.cambiar_escena(Escena_Juego())
def salir_del_juego(self):
pilas.terminar()
def iniciar(self):
# Cargamos el fondo del juego.
pilas.fondos.Tarde()
opciones = [
('Iniciar Juego', self.iniciar_juego),
('Salir', self.salir_del_juego),
]
pilas.actores.Menu(opciones)
pilas.iniciar()
pilas.cambiar_escena(Escena_Menu())
pilas.ejecutar()