Ejemplo n.º 1
0
 def __init__(self, game, pos, image, xspeed, yspeed):
     GameSprite.__init__(self, game)
     self.pos = list(pos)
     self.image = image
     self.rect = self.image.get_rect()
     self.xspeed = 0
     self.yspeed = 0
Ejemplo n.º 2
0
 def __init__(self, game, pos, image, xspeed, yspeed):
     GameSprite.__init__(self, game)
     self.pos = list(pos)
     self.image = image
     self.rect = self.image.get_rect()
     self.xspeed = 0
     self.yspeed = 0
Ejemplo n.º 3
0
 def __init__(self, game, path, speed, image, startpos=0, loop=LOOP):
     GameSprite.__init__(self, game)
     self.path = path
     self.speed = speed
     self.image = image
     self.rect = self.image.get_rect()
     self.ppos = startpos
     self.loop = loop
Ejemplo n.º 4
0
 def __init__(self, game, path, speed, image, startpos=0, loop=LOOP):
     GameSprite.__init__(self, game)
     self.path = path
     self.speed = speed
     self.image = image
     self.rect = self.image.get_rect()
     self.ppos = startpos
     self.loop = loop
Ejemplo n.º 5
0
 def __init__(self, game, damagepoints):
     GameSprite.__init__(self, game)
     self.damagepoints = damagepoints
Ejemplo n.º 6
0
 def __init__(self, game, pos, projectile, *pargs, **pkwargs):
     GameSprite.__init__(self, game)
     self.pos = pos
     self.projectile = projectile
     self.pargs = pargs
     self.pkwargs = pkwargs
Ejemplo n.º 7
0
 def __init__(self, game, health):
     GameSprite.__init__(self, game)
     self.health = health
     self.hurt = False
     self.dead = False  # Used if you want to do something when it dies
Ejemplo n.º 8
0
 def __init__(self, game, damagepoints):
     GameSprite.__init__(self, game)
     self.damagepoints = damagepoints
Ejemplo n.º 9
0
 def __init__(self, game, pos, projectile, *pargs, **pkwargs):
     GameSprite.__init__(self, game)
     self.pos = pos
     self.projectile = projectile
     self.pargs = pargs
     self.pkwargs = pkwargs
Ejemplo n.º 10
0
 def __init__(self, game, health):
     GameSprite.__init__(self, game)
     self.health = health
     self.hurt = False
     self.dead = False  # Used if you want to do something when it dies
Ejemplo n.º 11
0
 def __init__(self, game, pos, image):
     GameSprite.__init__(self, game)
     self.pos = pos
     self.image = image
     self.rect = self.image.get_rect()
Ejemplo n.º 12
0
 def __init__(self, game, pos, image):
     GameSprite.__init__(self, game)
     self.pos = pos
     self.image = image
     self.rect = self.image.get_rect()