refactoring main.py(2)

This commit is contained in:
aliaksei-kudravets 2022-03-10 16:18:06 +01:00
parent d7214199f2
commit e8d39b2e33

View File

@ -3,10 +3,6 @@ from map import preparedMap
from agent import trashmaster
#config
SCREEN_SIZE = [512, 512]
BACKGROUND_COLOR = '#ffffff'
class WalleGame():
def __init__(self):
@ -17,7 +13,7 @@ class WalleGame():
pygame.display.set_caption('Wall-e')
self.screen = pygame.display.set_mode(SCREEN_SIZE)
self.screen = pygame.display.set_mode(self.SCREEN_SIZE)
self.screen.fill(pygame.Color(self.BACKGROUND_COLOR))
# krata