I created python game with pygame from book called 'Python crash course'. It has 9 .py file (1 to run game, other 8 for modules like: settings, game_functions, etc.) and one folder where are 2 image files. I want to share this project with my friends who don't have python and pygame, so I want to convert entire project to .exe (windows executable)
I have tried cx_Freeze, py2exe and pyinstaller. Pyinstaller was the most successful one, It created .exe file but however when I run it it's getting black screen and getting closed. I think the reason is that it can't reach modules (8 .py files) and/or image files that I'm using.
Here is main .py code, whats it importing and stuff..
import pygame
from pygame.sprite import Group
from settings import Settings
from ship import Ship
import game_functions as gf
from game_stats import GameStats
from scoreboard import Scoreboard
from button import Button
def run_game():
pygame.init()
...
If you need any additional information feel free to ask!