Add animation for horses

This commit is contained in:
Emil Shanaty
2025-03-21 03:51:08 +03:00
parent ca9b417f37
commit 46ae823bfd
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -62,6 +62,7 @@ while True:
barrier.move(-BARRIER_SPEED, 0) # Move barriers to the left
for horse in horses:
horse.update_animation()
if horse.stopped == False: # Check for collisions between horses and barriers
for barrier in barriers:
if horse.rect.colliderect(barrier.rect): # If collision detected