- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
def animate_fight (self, игрок):
if self.gamedata.animate_fight == True:
if self.gamedata.fight_animation_progress < 3:
self.gamedata.screen.blit(self.fight1, (self.x - (self.width // 2), self.y - (self.width //2) ))
elif 3 <= self.gamedata.fight_animation_progress < 6:
self.gamedata.screen.blit(self.fight2, (self.x - (self.width // 2), self.y - (self.width //2) ))
elif 6 <= self.gamedata.fight_animation_progress < 9:
self.gamedata.screen.blit(self.fight3, (self.x - (self.width // 2), self.y - (self.width //2) ))
self.gamedata.screen.blit(self.fight1, (игрок.x - (self.width // 2), игрок.y - (self.width // 2) ))
elif 9 <= self.gamedata.fight_animation_progress < 12:
self.gamedata.screen.blit(self.fight4, (self.x - (self.width // 2), self.y - (self.width //2) ))
self.gamedata.screen.blit(self.fight2, (игрок.x - (self.width // 2), игрок.y - (self.width // 2) ))
elif 12 <= self.gamedata.fight_animation_progress < 15:
self.gamedata.screen.blit(self.fight5, (self.x - (self.width // 2), self.y - (self.width //2) ))
self.gamedata.screen.blit(self.fight3, (игрок.x - (self.width // 2), игрок.y - (self.width // 2) ))
elif 15 <= self.gamedata.fight_animation_progress < 18:
self.gamedata.screen.blit(self.fight6, (self.x - (self.width // 2), self.y - (self.width //2) ))
self.gamedata.screen.blit(self.fight4, (игрок.x - (self.width // 2), игрок.y - (self.width // 2) ))
elif 18 <= self.gamedata.fight_animation_progress < 21:
self.gamedata.screen.blit(self.fight5, (игрок.x - (self.width // 2), игрок.y - (self.width // 2) ))
elif 21 <= self.gamedata.fight_animation_progress < 24:
self.gamedata.screen.blit(self.fight6, (игрок.x - (self.width // 2), игрок.y - (self.width // 2) ))
elif 24 <=self.gamedata.fight_animation_progress:
self.gamedata.animating = False
self.gamedata.fight_animation_progress = 0
self.gamedata.animate_fight = False
if 24 > self.gamedata.fight_animation_progress:
self.gamedata.fight_animation_progress += 1
--В нашей стране живет 8.2 миллиона котов!
--Как посчитано?
--1, 2, 3, 4 и так далее