Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Gambiarra/levels.py
diff options
context:
space:
mode:
authorLuiz Irber <luiz.irber@gmail.com>2007-11-11 08:01:05 (GMT)
committer Luiz Irber <luiz.irber@gmail.com>2007-11-11 08:01:05 (GMT)
commitb4e2728ddca63d4bacadcc8ea0de9f7e594801c4 (patch)
treec9b9e41f77cff6414d14477ebf22c456f1dcb007 /Gambiarra/levels.py
parenta17c3397e95c76bf1c14724d71c1ed5b14565a5c (diff)
V8, 6 horas
Diffstat (limited to 'Gambiarra/levels.py')
-rw-r--r--Gambiarra/levels.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/Gambiarra/levels.py b/Gambiarra/levels.py
index 4d44079..7efb41c 100644
--- a/Gambiarra/levels.py
+++ b/Gambiarra/levels.py
@@ -4,13 +4,15 @@
import pygame
from objects.balls import *
from objects.animals import *
-from objects.wall import *
+from objects.elastica import *
from objects.esteira import *
from objects.target import *
+from objects.wall import *
from command import *
def _is_static(obj):
- if isinstance(obj, Target) or isinstance(obj, Esteira):
+ if (isinstance(obj, Target) or isinstance(obj, Esteira)
+ or isinstance(obj, Elastica)):
return True
class SimulationView(object):
@@ -67,7 +69,8 @@ class ObjectBar(object):
objpos = [15, 785]
for item in self.objects:
- item.draw(screen, objpos)
+ item.rect.topleft = objpos
+ item.draw(screen, item.rect.topleft )
objpos[0] += item.image.get_width() + 15
def update(self):
@@ -116,8 +119,10 @@ class Level(object):
def init_levels():
#FIXME: fazer de um jeito menos lusitano
#Sample levels
- level1ObjInPlace = [ BowlingBall((200,300)), BeachBall((300,0)), Esteira((300,500)), Target((1000,600))]
- level1ObjToAdd = [ Penguin(), BeachBall(), BowlingBall(), Esteira() ]
+ level1ObjInPlace = [ BowlingBall((200,300)), BeachBall((300,0)),
+ Esteira((300,500)), Target((1000,600)),
+ Elastica((700, 600))]
+ level1ObjToAdd = [ Penguin(), BeachBall(), BowlingBall(), Esteira(), Elastica() ]
level2ObjInPlace = [ Penguin((300,600)), Esteira((20,650))]
level2ObjToAdd = [ BeachBall(), Penguin(), BowlingBall() ]