Top "Pygame" questions

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

What fonts can I use with pygame.font.Font?

I thought that pygame.font.Font was to load .ttf fonts, and that you can't load a font without having …

pygame
How to fix a : TypeError 'tuple' object does not support item assignment

The following fragment of code from this tutorial: http://www.raywenderlich.com/24252/beginning-game-programming-for-teens-with-python for badguy in badguys: if badguy[0]<…

python pygame
What is the surface.blit() function in pygame? What does it do? How does it work?

I am a beginner in Python and I am not clear about the function surface.blit(). What does it do? …

python canvas pygame blit
How to know the angle between two points?

I am making small game with pygame and I have made a gun that rotates around its center. My problem …

python math pygame angle
Animated sprite from few images

I've been searching for some good tutorial about making simple sprite animation from few images in Python using Pygame. I …

python animation pygame sprite pygame-surface
Pygame, sounds don't play

I'm trying to play sound files (.wav) with pygame but when I start it I never hear anything. This is …

python audio pygame
Add scrolling to a platformer in pygame

Ok so I included the code for my project below, I'm just doing some experimenting with pygame on making a …

python scroll pygame
How can I create a text input box with Pygame?

I want to get some text input from the user in Python and display what they are typing in a …

python text pygame textinput
Python Exception in thread Thread-1 (most likely raised during interpreter shutdown)?

My friend and I have been working on a large project to learn and for fun in python and PyGame. …

python multithreading numpy queue pygame
HSV to RGB Color Conversion

Is there a way to convert HSV color arguments to RGB type color arguments using pygame modules in python? I …

python colors pygame rgb hsv