Male_zoo_Projekt_SI/season.py
s481832 9b0ecde75e Dodanie pory dnia
Dodanie sowy i nietoperza
2024-05-10 22:29:08 +02:00

11 lines
407 B
Python

import pygame
def draw_background(const):
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))