2024-05-08 20:19:48 +02:00
|
|
|
import pygame
|
|
|
|
|
2024-05-10 22:29:08 +02:00
|
|
|
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"
|
|
|
|
}
|
2024-05-10 22:29:08 +02:00
|
|
|
background_image = pygame.transform.scale(pygame.image.load(season_images[const.season]), const.WINDOW_SIZE)
|
|
|
|
const.screen.blit(background_image, (0, 0))
|