Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 23401

A game development library based on the Python programming language. It wraps SDL for easy use alongside Python.

1 vote
1 answer
1k views

When to use pygame.sprite.GroupSingle?

I'm doing a game in which i have a ball which is controlled by the keyboard and the goal is to get is out of a maze without touching the walls. I've added my ball sprite to GroupSprite vehicle = pyg …
TheMeaningfulEngineer's user avatar
5 votes
3 answers
25k views

Pygame surface rotation, rect rotation or sprite rotation?

i seem to have a conceptual misunderstanding of the surface and rect object in pygame. …
TheMeaningfulEngineer's user avatar
0 votes

Pygame surface rotation, rect rotation or sprite rotation?

In case of this code: class mySprite(pygame.sprite.Sprite): def __init__(self, xy): # initialize the pygame sprite part pygame.sprite.Sprite. …
TheMeaningfulEngineer's user avatar
2 votes
2 answers
1k views

Grouping surfaces in pygame to get an object with two movement points

I would like to create a simple tank using pygame. One would drive the tank by controlling he velocities of two caterpillar tracks. They should be the two single movement points of the vehicle. … I'm looking for directions in which pygame methods and objects to check or tutorials regarding the topic. …
TheMeaningfulEngineer's user avatar
7 votes
1 answer
5k views

Meaning of offset in pygame Mask.overlap methods

I have a situation in which two rectangles collide, and I have to detect how much did they collide so I can redraw the objects in a way that they are only touching each other's edges. It's a situatio …
TheMeaningfulEngineer's user avatar