""" 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 images import Images, Fonts from game import Level, Show from stats import Stats from screens import welcome_screen def sliceitoff(): """ The game - It all starts here """ pygame.init() pygame.mouse.set_visible(False) clock = pygame.time.Clock() display = Display() current_path = Path(__file__).parent.resolve() Images.load_images( current_path ) Fonts.load_fonts( current_path ) welcome = Show(welcome_screen()) dt = 0 while welcome.step(dt): dt = clock.tick() display.update( [welcome.sprites] ) Stats.new_game() while Stats.lives: level = Level(display = display) dt = 0 while level.step(dt): dt = clock.tick() if Stats.lives: Stats.level_up() pygame.quit() sliceitoff()