21 lines
458 B
Python
21 lines
458 B
Python
import pygame
|
|
|
|
from area.constants import WIDTH, HEIGHT
|
|
from area.field import drawWindow
|
|
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
|
|
pygame.display.set_caption('Intelligent tractor')
|
|
|
|
|
|
def main():
|
|
run = True
|
|
window = drawWindow(WIN)
|
|
pygame.display.update()
|
|
while run:
|
|
for event in pygame.event.get():
|
|
if event.type == pygame.QUIT:
|
|
run = False
|
|
|
|
# in loop move tractor
|
|
|
|
main()
|