[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] pygame vs py-sdl2 comparison



Hi, here are some simple comparison files I've worked on. The files are intended to be a near line-by-line comparison of doing the same thing in pygame, and Marcus's interface on SDL 2.0.

Example 1, open a blank window.
http://programarcadegames.com/sdl2_examples/f.php?file=pygame_open_window.py
http://programarcadegames.com/sdl2_examples/f.php?file=sdl2_open_window.py

Example 2, draw some things. I'm not done with this one.
http://programarcadegames.com/sdl2_examples/f.php?file=pygame_draw.py
http://programarcadegames.com/sdl2_examples/f.php?file=sdl2_draw.py

Marcus has done great work with py-sdl2. I plan on continuing to look at pygame and py-sdl2 in comparison.

Some things aren't obvious. Like how to draw a rectangles or ellipsis with thick borders. Also an ellipse in SDL 2.0 has a different outline than PyGame.

I'd really like to see an all inclusive Windows installer for PySDL 2. Install Python, install py-sdl2, and be ready to code. Not worry about external DLLs. I keep hoping Marcus will come up with one, but I might need to if he doesn't.

Paul Vincent Craven