""" Slice It Off! - Game where you slice the area where enemies reside to the minimum """ from time import sleep from pathlib import Path import pygame 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 sliceitoff(): """ The game - It all starts here """ pygame.init() display = Display() Images.load_images( Path(__file__).parent.resolve() ) status = Status() field = Field() enemies = Enemies(field = field, level = 10) player = Player(field = field, enemies = enemies) game = Game(player = player) clock = pygame.time.Clock() while True: dt = clock.tick(60) for fun in (status, field, enemies): fun.update(dt) display.update( [ status.sprites, field.sprites, enemies.sprites, player.sprites ]) if game.step(): break sleep(2) pygame.quit() sliceitoff()