import pygame from time import sleep from display import Display from status import Status from player import Player from field import Field from enemies import Enemies from images import Images from game import Game def main(): pygame.init() display = Display() Images.load_images() status = Status() field = Field() enemies = Enemies(field = field, level = 2) player = Player(field = field, enemies = enemies) game = Game(player=player) clock = pygame.time.Clock() for _ in range(6000): if game.step(): break display.update( [ status.get_sprites(), field.get_sprites(), enemies.get_sprites(), player.get_sprites() ]) clock.tick(60) sleep(2) pygame.quit() main()