Beispiel #1
0
class ItemcrateDrawer(object):
  def __init__(self, owner):
    self.owner = owner
    self.sprite = Sprite('itemcrate')
    assert(self.sprite.animations['default'].frames[0].data[0] == "6")

  def draw(self):
    self.sprite.draw_animation('default', self.owner.boundingbox,
        self.owner.facing_left)
Beispiel #2
0
 def __init__(self, owner):
   self.owner = owner
   self.sprite = Sprite('itemcrate')
   assert(self.sprite.animations['default'].frames[0].data[0] == "6")