comparison skaapsteker/sprites/player.py @ 623:65881746dc20

More Sprite hierarchy work.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 07 May 2011 13:59:00 +0200
parents da331c80ec08
children 35919d12b792
comparison
equal deleted inserted replaced
622:da331c80ec08 623:65881746dc20
61 self.set_pos((0, 0)) 61 self.set_pos((0, 0))
62 self._collisions_seen = 0 62 self._collisions_seen = 0
63 self._last_collide = [] 63 self._last_collide = []
64 64
65 65
66 def setup_image_data(self, pos): 66 def setup_image_data(self, pos, **opts):
67 self.shape = 'fox' # Needed so load image does the right thing 67 self.shape = 'fox' # Needed so load image does the right thing
68 self._image_dict = {} 68 self._image_dict = {}
69 self._shield_image = load_image('sprites/kitsune_shield.png') 69 self._shield_image = load_image('sprites/kitsune_shield.png')
70 for action in ['standing', 'running', 'jumping', 'attacking']: 70 for action in ['standing', 'running', 'jumping', 'attacking']:
71 for tails in [0, 1, 2, 4]: 71 for tails in [0, 1, 2, 4]: