Projekt_AI-Automatyczny_saper/main.py
2021-04-12 22:54:33 +02:00

30 lines
490 B
Python

import pygame
from Engine.Game import Game
WIN = pygame.display.set_mode((800, 800))
FPS = 60
def main():
run = True
clock = pygame.time.Clock()
game = Game(WIN)
while run:
pygame.init()
clock.tick(FPS)
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
pygame.time.delay(200)
if(game.finalState()):
run = False
game.move()
game.update()
main()