예제 #1
0
 def __init__(self, stage, sprite, position, item):
     GameElement.__init__(self, stage, sprite, item.name, position)
     self.position = Vector2(position)
     self.rect.center = self.position
     #self.sprite = pygame.image.load("multimedia/sprites/dropedbag.png").convert_alpha()
     self.item = item
     self.activetime = 20
     self.alive = True
     self.sound = getSound("misc01")
예제 #2
0
 def __init__(self, stage, sprite, position):
     GameElement.__init__(self, stage, sprite, "Item Notification", position)
     self.position = Vector2(position)
     self.rect.center = self.position
     #self.cfgentity_id = entity_id
     self.activetime = 20
     self.alive = True
     self.sound = getSound("misc01")
     self.touched = False
     self.drop = None
예제 #3
0
 def __init__(self, stage, sprite, position):
     Foco.__init__(self, stage, sprite, position)
     self.position = Vector2(position)
     self.rect.center = self.position
     #self.cfgentity_id = entity_id
     self.activetime = 20
     self.alive = True
     self.sound = getSound("misc01")
     self.respaw_delay = 6
     self.last_respaw = 6
     self.boss_alive = False
예제 #4
0
 def __init__(self, stage, sprite, position):
     GameElement.__init__(self, stage, sprite, "JukeBox", position)
     self.position = Vector2(position)
     self.rect.center = self.position
     #self.cfgentity_id = entity_id
     self.activetime = 20
     self.alive = True
     self.sound = getSound("misc02") # arrumar um som de disco de DJ
     self.respaw_delay = 10
     self.last_respaw = 10
     self.touched = False
     self.drop = None
예제 #5
0
 def __init__(self, stage, sprite, position):
     GameElement.__init__(self, stage, sprite, "Over Power Item Plus ultra", position)
     self.position = Vector2(position)
     self.rect.center = self.position
     #self.cfgentity_id = entity_id
     self.activetime = 20
     self.alive = True
     self.sound = getSound("misc02")
     self.respaw_delay = 10
     self.last_respaw = 10
     self.touched = False
     self.drop = None
예제 #6
0
 def __init__(self, stage, sprite, position):
     GameElement.__init__(self, stage, sprite, "foco_do_mosquito", position)
     self.position = Vector2(position)
     self.rect.center = self.position
     #self.cfgentity_id = entity_id
     self.activetime = 20
     self.alive = True
     self.sound = getSound("misc01")
     if constants.GAMELEVEL == "HARD":
         self.respaw_delay = 5
     else:
         self.respaw_delay = 7
     self.last_respaw = 7
     self.touched = False
     self.drop = None