23 lines
406 B
Python
23 lines
406 B
Python
|
import sys, pygame
|
||
|
from helpers import *
|
||
|
pygame.init()
|
||
|
|
||
|
size = width, height = 1000, 1000
|
||
|
screen = create_screen(size)
|
||
|
|
||
|
tiles_x, tiles_y = 10, 10
|
||
|
|
||
|
|
||
|
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()
|