Projekt_AI-Automatyczny_saper/main.py

25 lines
418 B
Python
Raw Normal View History

2021-03-13 21:16:35 +01:00
import pygame
2021-03-15 19:58:20 +01:00
from Engine.Game import Game
2021-03-13 21:16:35 +01:00
WIN = pygame.display.set_mode((800, 800))
FPS = 60
def main():
run = True
clock = pygame.time.Clock()
while run:
pygame.init()
2021-03-15 19:58:20 +01:00
game = Game(WIN)
2021-03-13 21:16:35 +01:00
clock.tick(FPS)
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
2021-03-15 19:58:20 +01:00
game.update()
2021-03-13 21:16:35 +01:00
pygame.display.update()
2021-03-15 19:07:11 +01:00
main()