diff --git a/main.py b/main.py index 1b5aea7..77953a9 100644 --- a/main.py +++ b/main.py @@ -29,7 +29,7 @@ def quitGame(): def play(screen, clock, running, background, isblack, WIDTH, HEIGHT): main = [MainCharacter('Herbert', 100, 'oldman.png', 500, 500, 20, 5, 1, 1, 50)] - mobs=[Skeleton(i, 50, 'reddy.png', random.randint(20,1000), random.randint(20,700), 125, 1, 1, 1, 200) for i in range(0,random.randint(2,8))] + mobs=[Skeleton(i, random.randint(40, 60), 'reddy.png', random.randint(20,1000), random.randint(20,700), 125, 1, 1, 1, 200) for i in range(0,random.randint(2, 8))] others = [] objects = [main, mobs, others] diff --git a/viecher.py b/viecher.py index 2fb3f8e..d07b933 100644 --- a/viecher.py +++ b/viecher.py @@ -69,7 +69,7 @@ class Fighter(Objects): self.attack_range = atr self.lastHurt = pg.time.get_ticks() self.lastAttack = pg.time.get_ticks() - self.hurtCooldown = 1000 + self.hurtCooldown = 250 @@ -227,7 +227,7 @@ class Arrow(Weapons): pos = vec(1,0) angle = pos.angle_to(moveto) with open(f'art/images/{sprite}') as i: - self.sprite = pg.transform.rotate(pg.image.load(i), angle) + self.sprite = pg.transform.rotate(pg.image.load(i), -angle) def move(self): self.moveto.scale_to_length(self.speed) @@ -242,4 +242,4 @@ class Arrow(Weapons): def update(self,objects): self.move() - self.die(objects) \ No newline at end of file + self.die(objects)