Top "Pygame" questions

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

Unable to install Pygame using pip

I'm trying to install Pygame. I am running Windows 7 with Enthought Python Distribution. I successfully installed pip, but when I …

python pygame installation pip
Installation of pygame with Anaconda

I have Anaconda 1.6.2, which uses Python 2.7.5, installed on a Windows 7 64-bit system. I need to install Pygame 1.9.1 and this is …

python python-2.7 pygame anaconda
How to block calls to print?

Is there a way to stop a function from calling print? I am using the pygame.joystick module for a …

python printing pygame
Pygame installation for Python 3.3

I am trying to import Pygame to use for my version of Python, 3.3. The downloads on the Pygame website only …

python pygame
Closing Pygame Window

I just spent a fair amount of time finding a 64-bit installation of pygame to use with python 3.3, (here) and …

python pygame
How can I play an mp3 with pygame?

import pygame file = 'some.mp3' pygame.init() pygame.mixer.init() pygame.mixer.music.load(file) pygame.mixer.music.play() …

python pygame
How to suppress console output in Python?

I'm using Pygame/SDL's joystick module to get input from a gamepad. Every time I call its get_hat() method …

python sdl pygame
Process finished with exit code -1073741515 (0xC0000135)

I'm running a python script and it used to work (it even does on my other laptop right now) but …

python pygame pycharm error-code
Draw a transparent rectangle in pygame

How can I draw a rectangle that has a color with an alpha? I have: windowSurface = pygame.display.set_mode((1000, 750), …

python pygame
pygame clock.tick() vs framerate in game main loop

Every pygame has a game loop that looks like this: while running: for event in pygame.event.get(): if event.…

python pygame frame-rate pygame-clock pygame-tick