Comments

Log in with itch.io to leave a comment.

uh i forgot i had this account

SHOULD BE USING C NOT PYTHON

(2 edits)

Yo, not a problem really but you can section off your code into different files and import them into the main one, like classes go into a class file and constants go into a constant file,  it can help with organizing your code and it can make it easier when it comes with adding new things to the game, that and comments


Another not a problem  now that I'm thinking about it is that you can put the game assets in a sub-folder, just so that  players don't need to search for the exe file, all you need to change is to move the files, and change the location in


Another non problem for the night, you can add an icon to the exe file threw pyinstaller using this prompt


pyinstaller namespace.py --icon=iconName.ico --onefile --windowed


not ur gonna need an ico file, u can use ico converter to change any img into an ico file, you have to put it in the same folder as the main file tho

For new projects that I'm working on - I'm starting to do that and it's a lot easier to work with

Yo i had an issue with seeing the game screen and i found the problem, you can change line 15

screen = pygame.display.set_mode((screen_width, screen_height))

to this

screen = pygame.display.set_mode((screen_width, screen_height),pygame.SCALED | pygame.FULLSCREEN)

What pygame.SCALED does is to make sure that the game resolution scales with the Monitor resolution and what pygame.FULLSCREEN does is that it fits the game to the monitor screen

monitor_size = [pygame.display.Info().current_w, pygame.display.Info().current_h]

screen = pygame.display.set_mode((monitor_size[0], monitor_size[1]), pygame.FULLSCREEN)

SCREEN_WIDTH, SCREEN_HEIGHT = monitor_size

scale = SCREEN_HEIGHT // 350


I've done this in some of my newer games, which I believe achieves a similar effect, but this way I can use the monitor size to do other things and scale objects respectively.

violin music goes hard ngl