def __init__(self, x, y): GameObject.__init__(self, x, y) self.image = pygame.image.load("images/player-bullet.png") self.box_collider = BoxCollider(40, 40) self.velocity = (0, 0) self.returning = False self.counter = FrameCounter(60)
def __init__(self, x, y, input_manager): GameObject.__init__(self, x, y) self.input_manager = input_manager self.image = pygame.image.load("images/player/player1.png") self.counter1 = FrameCounter(120) self.counter2 = FrameCounter(120) self.has_shoot1 = True self.has_shoot2 = True self.dog_count = 0 self.box_collider = BoxCollider(70, 70)
def __init__(self, x, y): GameObject.__init__(self, x, y) self.image = pygame.image.load("images/enemy.png") self.box_collider = BoxCollider(100, 100) self.returning = False self.velocity = (0, 0) self.counter = FrameCounter(100) self.spawn_lock = False # not stun self.stun_timer = FrameCounter(90) self.stun_timer.count = 90
def __init__(self, x, y): GameObject.__init__(self, x, y) self.image = pygame.image.load("images/enemy/bacteria1.png") self.box_collider = BoxCollider(40, 40) self.counter = FrameCounter(70) self.returning = False self.velocity = (0, 0) self.pushed = False # not stun self.stun_timer = FrameCounter(20) self.stun_timer.count = 20
def __init__(self, x, y): GameObject.__init__(self, x, y) self.image = pygame.image.load("images/doge.png") self.box_collider = BoxCollider(70, 70) self.returning = False self.velocity = (0, 0) self.counter = FrameCounter(200) self.spawn_lock = False self.run_setup = [(3, 0), (0, -3), (-3, 0), (0, 3)] # not stun self.stun_timer = FrameCounter(10) self.stun_timer.count = 10 self.index = 0
def __init__(self, x, y): GameObject.__init__(self, x, y) self.image = pygame.image.load("images/player-bullet.png") self.box_collider = BoxCollider(20, 20)
def __init__(self, x, y): GameObject.__init__(self, x, y) self.image = pygame.image.load("./images/hole.png") self.box_collider = BoxCollider(50, 400)
def __init__(self, x, y): GameObject.__init__(self, x, y) self.image = pygame.image.load("images/enemy/bacteria1.png") self.box_collider = BoxCollider(30, 30)
def __init__(self, x, y): GameObject.__init__(self, x, y) self.image = pygame.image.load("images/player-bullet.png") self.box_collider = BoxCollider(60, 60) self.velocity = (0, 0) self.time_before_disappear = FrameCounter(20)