예제 #1
0
 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
예제 #2
0
 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)
예제 #3
0
 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
예제 #4
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)
예제 #5
0
 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)
예제 #6
0
 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
예제 #7
0
 def __init__(self, x, y):
     GameObject.__init__(self, x, y)
     self.renderer = Animation(enemydie)
예제 #8
0
 def __init__(self, x, y):
     GameObject.__init__(self, 0, 200)
     self.frame_counter = FrameCounter(120)
예제 #9
0
 def __init__(self, width, height):
     GameObject.__init__(self, 0, 0)
     self.width = width
     self.height = height
예제 #10
0
 def __init__(self,x,y):
     GameObject.__init__(self,x,y)
예제 #11
0
 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")