Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Pygame-ce Questions

A topic by puzzlefrog created Jul 07, 2024 Views: 233 Replies: 3
Viewing posts 1 to 2

What is pygame-ce and how is it different from regular pygame? 

To install pygame - ce do I have to uninstall regular pygame?

Does pygame - ce overwrite regular pygame?


I saw the part in the rules about pygame vs. pygame - ce and was wondering what that was about. I am still new to pygame.

Submitted (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. 

Submitted (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.