Top "Pygame" questions

Pygame is a set of Python modules designed for writing video games.

how to play mp3

my problem starts here: pyttsx and gTTS module errors gTTS works well, takes text from text file, but first creates …

python-3.x pygame vlc pyglet pydub
How to use sprite groups in pygame

So I've gotten to the point in my program where I need to create a group for some sprites that …

python pygame sprite
Best way to install pygame on OS X Lion?

I tried to install pygame via pip but this fails. Based on my google searches, it sounds like easy_install …

python pygame
How to create MS Paint clone with Python and pygame

As I see it, there are two ways to handle mouse events to draw a picture. The first is to …

python mouse pygame draw paint
Pygame window not responding after a few seconds

This simple piece of code crashes (the window is not responding) after a few seconds (around 5). import pygame from pygame.…

python pygame
Is there any way to "clear" a surface?

Is there any way to clear a surface from anything that has been blitted to it?

python pygame geometry-surface blit
python library pygame: centering text

I have a code: # draw text font = pygame.font.Font(None, 25) text = font.render("You win!", True, BLACK) screen.blit(…

python python-3.x pygame
Basic networking with Pygame

I need to do some basic networking for a Pygame project. Basically, it's a 2D single player or cooperative game. …

python networking twisted pygame
Rotating a rectangle (not image) in pygame

In pygame I use pygame.draw.rect(screen, color, rectangle) for all the rectangles in my program. I want to …

python rotation pygame rectangles
Gravity in pygame

I'm making a platform game with pygame, and I would like to add gravity to it. Right now I only …

python pygame collision gravity