Add sprites made by Darya.

This commit is contained in:
Emil Shanaty
2025-03-21 03:07:52 +03:00
parent f1a0918dd3
commit f8551d4f3a
9 changed files with 34 additions and 9 deletions
+4 -4
View File
@@ -11,22 +11,22 @@ WHITE = (255, 255, 255) # Define white color
UI = UI() # Initialize UI
grass = Background("images/grass.jpg", 0, 0) # Create background
horse1 = Horse("images/horse.png", 50, 50) # Create a horse
barrier1 = Barrier("images/barrier.png", 400, 300) # Create a barrier
horse1 = Horse("images/Horse_1.png", 50, 50) # Create a horse
barrier1 = Barrier("images/Barrier.png", 400, 300) # Create a barrier
BARRIER_SPEED = 1 # Speed of the barriers
grass.set_size(WIDTH, HEIGHT) # Set background size
gameobjects = [] # List of all game objects
horses = [Horse("images/horse.png", 50, 50 * i) for i in range(50)] # Create 50 horses
horses = [Horse("images/Horse_1.png", 50, 50 * i) for i in range(50)] # Create 50 horses
barriers = [barrier1] # List of barriers
gameobjects.extend([grass]) # Add background to game objects
gameobjects.extend(horses) # Add horses to game objects
gameobjects.extend(barriers) # Add barriers to game objects
spawner = Spawner("images/barrier.png") # Initialize spawner
spawner = Spawner("images/Barrier.png") # Initialize spawner
UI.add_children(horses) # Add horses to UI
while True: