Questions tagged [pygame]
A game development library based on the Python programming language. It wraps SDL for easy use alongside Python.
488 questions
0 votes
0 answers
61 views
Applying greyscale shading to objects in a Python 3D renderer
I need help with how to apply greyscale shading to objects in a 3D renderer I made in Python. The code is pasted below: ...
0 votes
0 answers
21 views
How do I make smooth 2 way shooting in pygame? [duplicate]
I have been trying many thing to make my code work to make a player shoot a small box both ways (left and right) without being able to change the direction of the projectile mid shot. I would be very ...
0 votes
0 answers
70 views
Pygame won't display volume control
I'm making a game in Pygame running in Python 3.10 and the lastest version of pygame, and I can't get to display a volume control for the background music . The music is played correctly, but there is ...
1 vote
1 answer
94 views
Pygame display.Info() / fullscreen not working under Linux
I am experiencing some issues with pygame.display.Info() and the FULLSCREEN property on Linux. The game is displaying at roughly ...
1 vote
0 answers
87 views
How to handle collision events in games with multiple interactive objects?
I'm developing a 2D game where multiple types of objects interact with each other through collisions. Currently, I'm using pygame.spritecollide() to detect ...
0 votes
0 answers
100 views
Torch light effect
I want to implement a torch with in my pygame platformer, I don't know how to do it and so I need help on that. I have the lamp image, all I need is the light around a certain area of the lamp.
0 votes
1 answer
178 views
How can I improve vector collision algorithm?
I'm making a game (shocker) in pygame and had issues with tile-based collision detection. There are 5 different non-empty tile types (pictured below) which can be rotated in increments of 90 degrees ...
1 vote
1 answer
117 views
Connecting Isolated Paths in Randomly Generated Maps
I am new to game development, I previously created games using tiledmap editor and pygame, but manually creating map was real pain, so i begun to look how can i procedurally generate map, after ...