Changeset 484:b15b0bd933a5


Ignore:
Timestamp:
04/09/11 20:12:31 (12 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Message:

Fix facing on NPCs and clean up debug prints.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/base.py

    r475 r484  
    160160
    161161    def collided_player(self, player):
    162         print "%s collided with player" % self
    163162        self.start_attack(player)
    164163
     
    208207
    209208    def damage(self, damage):
    210         print 'Damaged by ', damage
    211209        self.health -= damage
    212         print 'Monster health', self.health
    213210        if self.health <= 0:
    214211            self.kill()
     
    274271        self._layer = Layers.PLAYER
    275272
    276     def setup(self, name, world, dsm, state, facing):
     273    def setup(self, name, world, dsm, state, facing=None):
    277274        self.name = name
    278275        self.dsm = dialogue.DSM(name, world, dsm, state)
     
    421418        self.facing = facing
    422419        self.leadsto = leadsto
    423         print leadsto
    424420
    425421
    426422    def player_action(self, player):
    427         print "Player touched %s" % self
    428423        from .. import engine, levelscene
    429424        engine.ChangeScene.post((levelscene.LevelScene, self.leadsto))
Note: See TracChangeset for help on using the changeset viewer.