diff options
author | Luiz Irber <luiz.irber@gmail.com> | 2007-11-11 08:02:11 (GMT) |
---|---|---|
committer | Luiz Irber <luiz.irber@gmail.com> | 2007-11-11 08:02:11 (GMT) |
commit | 1237d3f177db09c28f02ebe797165a9f093c94e7 (patch) | |
tree | 0f7eb7c61da055663f12b0580555d305c7e3a7d6 | |
parent | b4e2728ddca63d4bacadcc8ea0de9f7e594801c4 (diff) |
esqueci a cama elastica...
-rw-r--r-- | Gambiarra/objects/elastica.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Gambiarra/objects/elastica.py b/Gambiarra/objects/elastica.py new file mode 100644 index 0000000..1d208fa --- /dev/null +++ b/Gambiarra/objects/elastica.py @@ -0,0 +1,15 @@ +# gambiarra/elastica.py + +from os.path import abspath + +import pygame + +from things import Thing + +class Elastica(Thing): + + def __init__(self, initialPosition = [0,0], editable=False): + super(Elastica, self).__init__( + pygame.image.load(abspath("../data/images/cama_elastica.png")), + editable, initialPosition, elasticity = 100, mobility = False, + gravity = 10) |