pygame_sdl2 and pygame 2

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
Beuc
Regular
Posts: 80
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

pygame_sdl2 and pygame 2

#1 Post by Beuc » Thu Dec 13, 2018 7:18 am

Hi,

I was contemplating some contributions to pygame_sdl2 (such as direct access to pixels) and I saw that the official pygame project is announcing SDL2 support.

I couldn't find information on how the two "pygame+SDL2" projects are related on either website, so I'll ask here :)
- Is there collaboration between these two projects?
- Will one be obsoleted by the other, or will they be separate forks?

User avatar
PyTom
Ren'Py Creator
Posts: 15478
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: pygame_sdl2 and pygame 2

#2 Post by PyTom » Mon Dec 17, 2018 4:16 pm

Pygame_sdl2 came about when I was porting Ren'Py to SDL2. Since Ren'Py was based on the pygame API, and I didn't want to rewrite Ren'Py more than I had to, I (and Patrick Dawson) rewrote pygame_sdl2 instead. I gave the project that name since I hoped that the pygame project would adopt it going forwards. They chose a different choice, which is their right. Pygame_sdl2 supports some but not all Pygame features - it supports those Ren'Py needs, and some select other ones.

I don't plan to change Ren'Py's dependency on pygame_sdl2. It's working well, and has good stories for all major desktop and mobile platforms. And after a several-year gap without a pygame release, I don't want to put Ren'Py's future in the hands of another project. So I plan to keep pygame_sdl2 around, but perhaps rename it (maybe to renpygame), to make it clear that its primary intent is to support Ren'Py, and it's not the future of pygame.

To some extent, this is my fault - Ren'Py is already a huge community to support, and I don't have time to support pygame, also.

I'm hoping that some of the technologies introduced in Ren'Py will be useful on the pygame side. For example, I think Uguu is turning out to be a very good cross-platform, cross-api GL abstraction.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

trajano
Regular
Posts: 60
Joined: Sun Jun 16, 2019 7:59 pm
Github: trajano
Contact:

Re: pygame_sdl2 and pygame 2

#3 Post by trajano » Wed Jun 26, 2019 12:41 pm

I also see Pyglet as another GL library for Python, but the API looks so drastically different than that of Pygame

Post Reply

Who is online

Users browsing this forum: No registered users