From 6e8a0d11ac4fecb250983d2e7928bfa797a8d7f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20Mart=C3=ADnez=20Mart=C3=AD?= Date: Mon, 9 Jun 2008 21:22:33 +0200 Subject: [PATCH] =?utf8?q?Agregadas=20dos=20pantallas=20m=C3=A1s?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- qwesprites.py | 6 ++++-- stage_03_movingblocks.st | 18 +++++++++++++---- stage_04_largeshoot.st | 33 +++++++++++++++++++------------ stage_05_charge.st | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ stage_10_gofast.st | 48 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 137 insertions(+), 19 deletions(-) create mode 100644 stage_05_charge.st create mode 100644 stage_10_gofast.st diff --git a/qwesprites.py b/qwesprites.py index 23a0507..cf2cf91 100644 --- a/qwesprites.py +++ b/qwesprites.py @@ -687,15 +687,17 @@ class Hacha(qweShoot): def collision(self,stage,x,y,char): qweShoot.collision(self,stage,x,y,char) - if char=='B' and y==self.psy and x==self.psx+1 \ + if char=='B' and x>self.psx and self.dx>0 \ and stage.getCh(x+1,y)==' ' and stage.getCh(x+1,y+1)!=' ': stage.setCh(x,y,' ') stage.setCh(x+1,y,'B') + self.Life-=1 - if char=='B' and y==self.psy and x==self.psx-1 \ + if char=='B' and x