Search Results
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 |
A game development library based on the Python programming language. It wraps SDL for easy use alongside Python.
2
votes
Complex collisions in pygame
:P
Long answer: rectangle collisions are built into Pygame. Circle collisions are simple math. Use Box2D for anything more complicated. …
4
votes
Accepted
pygame.Rect around circle
Presumably you're using a center position and a radius to draw the circle. Just create a rect like this:
crect = pygame.Rect(center[0]-radius, center[1]-radius, \
radius*2, radiu …
1
vote
PyGame QIX clone, filling areas
This is a problem involving multiple discrete substeps. Here is an outline of what I'd suggest:
Wait until the player forms an intersection of multiple lines
Get a pixel from each side of the inter …