22 lines
517 B
Python
22 lines
517 B
Python
|
import sys
|
||
|
import pygame
|
||
|
from .helpers import *
|
||
|
|
||
|
|
||
|
def initialize_interface(tiles_x, tiles_y):
|
||
|
size = width, height = 800, 800
|
||
|
screen = create_screen(size)
|
||
|
pygame.display.set_caption('Epic AI Vacuum Cleaner')
|
||
|
|
||
|
while True:
|
||
|
for event in pygame.event.get():
|
||
|
if event.type == pygame.QUIT:
|
||
|
sys.exit()
|
||
|
|
||
|
screen.fill(BLACK)
|
||
|
# rect(screen, WHITE, 50,50,90,90)
|
||
|
|
||
|
draw_board(screen, WHITE, width, height, tiles_x, tiles_y)
|
||
|
|
||
|
pygame.display.flip()
|