Game development software based on the Python programming language.

learn more… | top users | synonyms

1
vote
2answers
436 views

Detecting walls or floors in pygame

I am trying to make bullets bounce of walls, but I can't figure out how to correctly do the collision detection. What I am currently doing is iterating through all the solid blocks and if the bullet ...
1
vote
1answer
31 views

Playing a sound once pygame

I'm trying to play background music and the music keeps on starting. I tried to use music.busy, but I can't figure it out. I want it to check if sound/music is playing, then I want it to print "music ...
0
votes
1answer
51 views

Color detection

Is there a way to tell if a sprite is touching a specific color on the screen, maybe in a hex code. I know you can do $pygame.sprite.collide$ for sprites, but how can you do this for color on the ...
0
votes
1answer
309 views

Collision in PyGame for spinning rectangular object.touching circles

I'm creating a variation of Pong. One of the differences is that I use a rectangular structure as the object which is being bounced around, and I use circles as paddles. So far, all the collision ...
-1
votes
1answer
141 views

theory behind rotation of a 3d cube using mouse

I want to rotate a 3d cube using mouse in python/pygame. Could someone explain the theory behind rotating a 3d cube by mouse? I dont understand how angleX, angleY and angleZ are affected by mouse ...
0
votes
0answers
19 views

Pygame Displaying Text Without Pause

I'm creating a rpg game with python and pygame but I ran into a problem. From the videos I learned pygame (not python, learned from univeristy) this is how they told me to display texts. def ...
0
votes
0answers
41 views

pygame.display.update(list) updates entire screen, not just rectangles in list

I have two "sprites", one following the mouse and one that moves with WASD. They aren't really pygame.sprite.Sprite objects, but they move like this: Paint over original position with that piece of ...
0
votes
0answers
37 views

putting view 'effects' in the view - pygame

I have a project where I've tried to move 'visual effects' out of the sprite class's responsibility and into a 'screen manager' class, and before I get much further than effects like rotation and ...