Mercurial > skaapsteker
diff skaapsteker/sprites/base.py @ 475:18427edff33a
Add facing support to npcs
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 21:53:19 +0200 |
parents | c6d1165bb16f |
children | b15b0bd933a5 |
line wrap: on
line diff
--- a/skaapsteker/sprites/base.py Sat Apr 09 21:35:28 2011 +0200 +++ b/skaapsteker/sprites/base.py Sat Apr 09 21:53:19 2011 +0200 @@ -273,10 +273,11 @@ AnimatedGameSprite.__init__(self, pos, **opts) self._layer = Layers.PLAYER - def setup(self, name, world, dsm, state): + def setup(self, name, world, dsm, state, facing): self.name = name self.dsm = dialogue.DSM(name, world, dsm, state) self._me = getattr(world.npcs, self.name) + self.facing = facing def player_action(self, player): OpenDialog.post(self) @@ -288,8 +289,8 @@ mobile = False block = True - def setup(self, name, world, dsm, state, block): - NPC.setup(self, name, world, dsm, state) + def setup(self, name, world, dsm, state, facing, block): + NPC.setup(self, name, world, dsm, state, facing) self.block = block self._animation = 'standing'