old_contents: ﻿import pygame
  from sys import exit
  
  from Game import Game
  from Helpers.EventHelpers import EventExist
  
  pygame.init()
  clock = pygame.time.Clock()
  
  
  def Main():
      pygame.display.init()
  
      # Music
      pygame.mixer.init()
      pygame.mixer.music.load('Resources/menu.mp3')
      pygame.mixer.music.play()
  
      game = Game()
  
      while True:
          events = pygame.event.get()
          if EventExist(events, pygame.QUIT):
              pygame.quit()
              exit()
          game = game.Update(events)
          game.Draw()
  
          clock.tick()
          pygame.display.set_caption('Frequency | FPS: %i' % int(clock.get_fps() + 100))
          pygame.display.flip()
  
  Main()
  
new_contents: ﻿import os
  
  import pygame
  from sys import exit
  
  from Game import Game
  from Helpers.EventHelpers import EventExist
  
  pygame.init()
  clock = pygame.time.Clock()
  
  # make necessary directory
  if not os.path.exists("./savegames/"):
      os.makedirs("./savegames/")
  
  def Main():
      pygame.display.init()
  
      # Music
      pygame.mixer.init()
      pygame.mixer.music.load('Resources/menu.mp3')
      pygame.mixer.music.play()
  
      game = Game()
  
      while True:
          events = pygame.event.get()
          if EventExist(events, pygame.QUIT):
              pygame.quit()
              exit()
          game = game.Update(events)
          game.Draw()
  
          clock.tick()
          pygame.display.set_caption('Frequency | FPS: %i' % int(clock.get_fps() + 100))
          pygame.display.flip()
  
  Main()
  
subject: fix to check if directory savegames exists and if not create the directory. And it is the 300th commit!! :) :)