Male_zoo_Projekt_SI/season.py

11 lines
407 B
Python
Raw Normal View History

2024-05-08 20:19:48 +02:00
import pygame
def draw_background(const):
2024-05-08 20:19:48 +02:00
season_images = {
"spring": "images/tłowiosna.jpg",
"summer": "images/tło.jpg",
"autumn": "images/tłojesień.jpg",
"winter": "images/tłozima.jpg"
}
background_image = pygame.transform.scale(pygame.image.load(season_images[const.season]), const.WINDOW_SIZE)
const.screen.blit(background_image, (0, 0))