def __init__(self, x, y): GameObject.__init__(self, x, y) self.box_collider = BoxCollider(50, 50) self.first_move = False self.sec_move = False self.renderer = Animation(list_enemy, loop=True, frame_delay=1) self.stun = False self.stunCooldown = 20 self.isDeath = False
def __init__(self,x,y): GameObject.__init__(self,x,y-20) self.frame_counter = FrameCounter(30) self.shoot_lock = False self.box_collider = BoxCollider(64,80) # self.tower_circle = Tower_circle(0,0) self.rangeCheck = False self.range = 0 self.enemy_x = tower_defense.game_object.get_position_from_main[0] self.enemy_y = tower_defense.game_object.get_position_from_main[1] self.renderer = Animation(list_tower_aoe,loop=True,frame_delay=30)
def __init__(self,x,y,e_x,e_y): GameObject.__init__(self,x,y) self.box_collider = BoxCollider(15,15) self.renderer = Animation(list_bullet_shotgun,loop=True,frame_delay=1) self.e_x = e_x self.e_y = e_y self.cooldown = 80 self.velocity = (0,0) self.vectorX = 0 self.vectorY = 0 self.velocityX = 0 self.velocityY = 0
def __init__(self,x,y): GameObject.__init__(self,x,y) self.renderer = Animation(["images/gameover1.png", "images/gameover2.png", "images/gameover3.png", "images/gameover4.png", "images/gameover5.png", "images/gameover6.png", "images/gameover7.png", "images/gameover8.png",],loop = True,frame_delay=10) # def update(self): # GameObject.update(self) # if global_input_manager.enter_pressed: # gameplay_scene = GamePlayScene() # global_scene_manager.change_scene(gameplay_scene)
def __init__(self, x, y): GameObject.__init__(self, x, y) self.renderer = Animation([ "images/gamestartscreen1.png", "images/gamestartscreen2.png", "images/gamestartscreen3.png", "images/gamestartscreen4.png", "images/gamestartscreen5.png", "images/gamestartscreen6.png", "images/gamestartscreen7.png", "images/gamestartscreen8.png", "images/gamestartscreen9.png", "images/gamestartscreen10.png", "images/gamestartscreen11.png", ], loop=True, frame_delay=10)
def __init__(self, x, y): GameObject.__init__(self, x, y) self.renderer = ImageRenderer("images/castle.png") self.box_collider = BoxCollider(70, 70) self.HP = 5
def __init__(self, x, y): GameObject.__init__(self, x, y) self.renderer = Animation(enemydie)
def __init__(self, x, y): GameObject.__init__(self, 0, 200) self.frame_counter = FrameCounter(120)
def __init__(self, width, height): GameObject.__init__(self, 0, 0) self.width = width self.height = height
def __init__(self,x,y): GameObject.__init__(self,x,y)
def __init__(self, x, y): GameObject.__init__(self, x, y) self.builded = False self.box_collider = BoxCollider(70, 70) self.renderer = ImageRenderer("images/hole.png")