Compare commits

..

No commits in common. "c741c8199ae2d7c6c95a6c9f7595a0d131d0135e" and "7725bea20c8a7897bda05283c4b86635ade6916c" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View file

@ -29,7 +29,7 @@ def quitGame():
def play(screen, clock, running, background, isblack, WIDTH, HEIGHT): def play(screen, clock, running, background, isblack, WIDTH, HEIGHT):
main = [MainCharacter('Herbert', 100, 'oldman.png', 500, 500, 20, 5, 1, 1, 50)] main = [MainCharacter('Herbert', 100, 'oldman.png', 500, 500, 20, 5, 1, 1, 50)]
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))] 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))]
others = [] others = []
objects = [main, mobs, others] objects = [main, mobs, others]

View file

@ -69,7 +69,7 @@ class Fighter(Objects):
self.attack_range = atr self.attack_range = atr
self.lastHurt = pg.time.get_ticks() self.lastHurt = pg.time.get_ticks()
self.lastAttack = pg.time.get_ticks() self.lastAttack = pg.time.get_ticks()
self.hurtCooldown = 250 self.hurtCooldown = 1000
@ -227,7 +227,7 @@ class Arrow(Weapons):
pos = vec(1,0) pos = vec(1,0)
angle = pos.angle_to(moveto) angle = pos.angle_to(moveto)
with open(f'art/images/{sprite}') as i: 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): def move(self):
self.moveto.scale_to_length(self.speed) self.moveto.scale_to_length(self.speed)