przeniesienie stałych zmiennych do osobnego pliku

This commit is contained in:
Weranda 2023-03-29 16:58:24 +02:00
parent 769aeff89e
commit 46524da263
2 changed files with 6 additions and 5 deletions

5
config.py Normal file
View File

@ -0,0 +1,5 @@
FRAMERATE = 30
WIDTH, HEIGHT = 1100, 1100
TILE_SIZE = 100
BLACK = ((0,0,0))
WHITE = ((255,255,255))

View File

@ -1,12 +1,8 @@
import pygame
import random
from config import *
pygame.init()
FRAMERATE = 30
WIDTH, HEIGHT = 1100, 1100
TILE_SIZE = 100
BLACK = ((0,0,0))
WHITE = ((255,255,255))
ARCHER_ORK_IMG = pygame.image.load("./zdjecia/ork_lucznik.jpg")
INFATRY_ORK_IMG = pygame.image.load("./zdjecia/ork-piechota.jpg")