15 lines
262 B
Python
15 lines
262 B
Python
|
import os,sys
|
||
|
|
||
|
if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'): # Change le dossier d'execution si le jeu est packagé
|
||
|
os.chdir(sys._MEIPASS)
|
||
|
|
||
|
from gamedata.game import *
|
||
|
|
||
|
game = Game()
|
||
|
|
||
|
while game.running:
|
||
|
game.game_loop()
|
||
|
|
||
|
pygame.quit()
|
||
|
|