Top "Pygame" questions

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

ImportError: No module named 'pygame'

I have installed python 3.3.2 and pygame 1.9.2a0. Whenever I try to import pygame by typing: import pygame I get following …

python import pygame
Solving "DLL load failed: %1 is not a valid Win32 application." for Pygame

I recently installed Python 3.1 and the Pygame module for Python 3.1 When I type import python in the console I get …

python pygame
How to get keyboard input in pygame?

I am making a game in pygame 1.9.2. It's a faily simple game in which a ship moves between five columns …

keyboard pygame
How to display text in pygame?

I can't figure out to display text in pygame. I know I can't use print like in regular python IDLE …

python text pygame
Pygame mouse clicking detection

I was wondering how to write code that would detect the mouse clicking on a sprite. For example: if #Function …

python mouseevent pygame
How to scale images to screen size in Pygame

I was wondering how I would go about scaling the size of images in pygame projects to the resolution of …

python image background pygame scaling
Pygame Drawing a Rectangle

Im making a game that requires knowing how to draw a rectangle in python 3.2. I have checked lot of sources …

python pygame rectangles 2d-games
Python display text with font & color?

Is there a way I can display text on a pygame window using python? I need to display a bunch …

python pygame
Add pygame module in PyCharm IDE

I've downloaded pygame-1.9.1release.tar.gz from the Pygame website. I extracted and installed it and it's working fine in …

python python-2.7 terminal pygame pycharm
how to play wav file in python?

I tried pygame for playing wav file like this: import pygame pygame.init() pygame.mixer.music.load("mysound.wav") pygame.…

python audio pygame pyglet