1

So, i am new to programming and i made a PyGame project but i don't know how to compile it, i know how to compile projects that don't have modules or multiple files, but this just beats me. I searched everywhere and i didn't found anything that can help me. this is the code i tryed in cx_freeze but when i try to run the program it gives me an FileNotFounderror in cmd.Thank you!

From cx_Freeze:

import setup,Executable

includefiles = ['alien.bmp', 'ship.bmp', 'music.mp3']
includes = ['alien.py','bullet.py','button.py','game_functions.py','game_stats.py','scoreboard.py','settings.py','ship.py',]
packages = ['pygame']

setup(
    name = 'Lupu Invasion',
    version = '0.1a',
    description = '',
    author = '',
    author_email = '',
    options = {'build_exe': {'packages':packages,'include_files':includefiles}},
    executables = [Executable('LupuInvasion.py')]
Robert Columbia
  • 6,313
  • 15
  • 32
  • 40
Vlad
  • 11
  • 3

0 Answers0