diff options
Diffstat (limited to 'pilas/actores/pelota.py')
-rw-r--r-- | pilas/actores/pelota.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pilas/actores/pelota.py b/pilas/actores/pelota.py new file mode 100644 index 0000000..88cee25 --- /dev/null +++ b/pilas/actores/pelota.py @@ -0,0 +1,23 @@ +# -*- 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 + +from pilas.actores import Actor +import pilas + +class Pelota(Actor): + "Representa una pelota de Volley." + + def __init__(self, x=0, y=0): + imagen = pilas.imagenes.cargar('pelota.png') + Actor.__init__(self, imagen) + self.rotacion = 0 + self.x = x + self.y = y + self.radio_de_colision = 25 + + self.aprender(pilas.habilidades.RebotarComoPelota) |