reply.it      Â
"We learn more by looking for the answer to a question and not finding it than we do from learning the answer itself."
Lloyd Alexander, The Book of Three
PyGame Examples and Answers
This repository is an excerpt and explanations of answers to PyGame questions published on Stack Overflow and answered by the author of this repository.
It does not contain an application, just a collection of examples. Initially I just wanted to bring order to a bunch of PyGame examples on my local drive. The examples should not be sophisticated, they should be kept as simple as possible. Each example should just spot one single issue. However, this is not a complete PyGame tutorial, but rather a FAQ.
This page provides links to the relevant Stack Overflow questions and live examples on repl.it. The examples are roughly divided into topics. My first language isn't English, but I did my best. I struggle with English grammar, which is the bill of my laziness at school.
The site is still under construction 🚧.
Testimonial
repl.it/@Rabbid76/PyGame-CreatureAnimation**
Application, control flow and events
Display, display position, update, resize, coordinate system and scroll
Draw scene
Sprite, Group, Sprite collision and Sprite mask
Move, scale and rotate objects
Rotate towards target or mouse
Interaction between objects
Collision and Intersection (Bounce, Pong, etc.)
Random and random distribution
Enhanced
Surface array, pixel array, buffer proxy
Libraries
PyGame in combination with other libraries
PyGame and OpenGL
PyGame Ray Tracing
See PyGame Ray Tracing repository.
Resources
PyGame - PyGame documentation
Github - pygame
Github - pygame/pygame
GitHub - CTPUG/pygame_cffi