[Magicor-devel] rev 89 : level issues - die after win continued
Status: Beta
Brought to you by:
petgeb
From: Claudio <cla...@ya...> - 2006-11-15 17:34:44
|
I uniformized the title field of the level (1st leter in caps, followings in lowercase, separator a blank) so that levels dont mixed. I added temporary level-04.lvl ( later I will change name).Besides being interesting, look at that Peter: even when the old style ( can die after last fire is out) in this level you can kill all the fires, be ready to die in lava, as per your rules, but the chain reaction is long so happy state ends and you got the level ).Note: you can win by the rule, but also not by the rule: kick under the fire, build_ice, kick_block, go up to the double block. If you really want to enforce that rule (is interesting) then probably we need a 'can_propagate' counter, doing as: set to 0 at level begin if a fire begins to fall, increment can_propagate if an entity activates other, increment can_propagate if an entity activated cannot activate another, decrement can_propagate if a fire stops to fall, after chek for posible neighbor activation , decrement etc for ice falling, ice cracking and wathever Then we change player.finished() from def finished(self): if not self.dead and not self._finished and self.canMove(): to: def finished(self): if not self.dead and not self._finished and self.canMove() and not can_propagate: How you see this ? cya Claudio __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar |