Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pilas/escenas.py
diff options
context:
space:
mode:
Diffstat (limited to 'pilas/escenas.py')
-rw-r--r--pilas/escenas.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/pilas/escenas.py b/pilas/escenas.py
new file mode 100644
index 0000000..e7e081f
--- /dev/null
+++ b/pilas/escenas.py
@@ -0,0 +1,30 @@
+# -*- encoding: utf-8 -*-
+# pilas engine - a video game framework.
+#
+# copyright 2010 - hugo ruscitti
+# license: lgplv3 (see http://www.gnu.org/licenses/lgpl.html)
+#
+# website - http://www.pilas-engine.com.ar
+
+import pilas
+
+class Escena(object):
+ "Escena abstracta."
+
+ def __init__(self):
+ pilas.actores.utils.destruir_a_todos()
+ pilas.mundo.definir_escena(self)
+
+ def iniciar(self):
+ pass
+
+ def terminar(self):
+ pass
+
+
+class Normal(Escena):
+ "Representa la escena inicial mas simple."
+
+ def __init__(self, color_de_fondo=None):
+ Escena.__init__(self)
+ self.fondo = pilas.fondos.Color(color_de_fondo)