przeniesienie stałych zmiennych do osobnego pliku
This commit is contained in:
parent
769aeff89e
commit
46524da263
5
config.py
Normal file
5
config.py
Normal file
@ -0,0 +1,5 @@
|
||||
FRAMERATE = 30
|
||||
WIDTH, HEIGHT = 1100, 1100
|
||||
TILE_SIZE = 100
|
||||
BLACK = ((0,0,0))
|
||||
WHITE = ((255,255,255))
|
6
main.py
6
main.py
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user