Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Pygame-ce is a fork of pygame. It was created after some conflict that occurred that prevented developers from contributing to the main library. Pygame-ce is the one most commonly recommended.

(1 edit)

Do I use a different import statement at the start of my file?

Normally I would structure a file like this:

import pygame

pygame.init()

game_code(game_window, game_loop, event_handler)


and that works well enough.

With the ce fork would I instead structure it like:

import pygame-ce

pygame-ce.init()

game_code(game_window, game_loop, event_handler)


I am not familiar with how forks of a program or library work. I know it has something to do with Github, but I have no idea how Github works. I have never used it. 

(1 edit) (+1)

No, you do not import differently. You use the same structure. To ensure that you are using pygame-ce you might have to uninstall pygame from where you are using it and then pip install pygame-ce.

If you encounter any problems while doing that, there are multiple people in discord who could help you much better than I.

As a last note, github is a place where to store your projects, use version control, and show it more easily. As per the requirements, you will need to upload the source code, you can do that through github if you prefer.