Exemple #1
0
 def __init__(self, x, y):
     GameObject.__init__(self, x, y)
     self.renderer = Animation([
         "image/menu/startt1.png", "image/menu/startt2.png",
         "image/menu/startt3.png"
     ],
                               loop=True)
 def __init__(self, x, y):
     GameObject.__init__(self, x, y)
     self.box_collider = BoxCollider(32, 32)
     self.renderer = PlayerAnimator()
     self.frame_counter = FrameCounter(120)
     self.counter = FrameCounter(120)
     self.black_screen = False
     self.dx = 0
     self.dy = 0
     self.win = False
     self.step = 8
     self.overlap = False
Exemple #3
0
 def __init__(self, x, y):
     GameObject.__init__(self, x, y)
     self.box_collider = BoxCollider(32, 32)
     self.renderer = EnemyAnimator()
     self.direct = True
     self.frame_counter = FrameCounter(120)
     self.black_screen = False
     self.counter = FrameCounter(120)
     self.dy = 8
     self.dx = 0
     self.overlap = False
     self.directory = [1, 2, 3, 4]
     self.step = 8
Exemple #4
0
 def __init__(self, x, y):
     GameObject.__init__(self, x, y)
     self.renderer = ImageRenderer("image/37059021_226940234620421_6512011225008701440_n.png")
 def __init__(self, x, y):
     GameObject.__init__(self, x, y)
     # self.renderer = Animation([])
Exemple #6
0
 def __init__(self, width, height):
     GameObject.__init__(self, 0, 0)
     self.width = width
     self.height = height
Exemple #7
0
 def __init__(self, x, y):
     GameObject.__init__(self, x, y)
     self.renderer = ImageRenderer("image/enemy/enemy/enemy right1.png")
     self.box_collider = BoxCollider(32, 32)
Exemple #8
0
 def __init__(self, x, y):
     GameObject.__init__(self, x, y)
     self.renderer = ImageRenderer("image/map/image/6.png")
     self.box_collider = BoxCollider(16, 16)
Exemple #9
0
 def __init__(self, x, y):
     GameObject.__init__(self, x, y)
     self.renderer = ImageRenderer("image/map/image/1.png")
 def __init__(self, x=0, y=0):
     GameObject.__init__(self, x, y)
     self.counter = FrameCounter(120)
     self.frame_counter = FrameCounter(120)
     self.screen = True
     self.box_collider = BoxCollider(800, 640)
 def __init__(self, x, y):
     GameObject.__init__(self, x, y)
     self.renderer = ImageRenderer("image/menu/winning_scene.png")
 def __init__(self, x, y):
     GameObject.__init__(self, x, y)
     self.renderer = ImageRenderer("image/menu/Gameover.png")
Exemple #13
0
 def __init__(self, x, y):
     GameObject.__init__(self, x, y)
     self.renderer = ImageRenderer("image/slave/prisoner.png")
     self.box_collider = BoxCollider(32, 32)
Exemple #14
0
 def __init__(self, x, y, input_manager):
     GameObject.__init__(self, x, y)
     self.box_collider = BoxCollider(32, 32)
     self.input_manager = input_manager