Questions tagged [python]
Python is a dynamically and strongly typed programming language that encourages readability.
640
questions
1
vote
1
answer
34
views
Reading steering wheel events has 180 degree dead zone. How to remove/reduce dead zone?
I'm making a GUI that can be controlled by a steering wheel. It need only run on Windows.
It works as expected with exception of the fact that the first 90 degrees in either direction seems to be ...
1
vote
1
answer
67
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 ...
0
votes
0
answers
49
views
Poor performance with camera zoom
I've created a Camera class that takes a source surface and draws it to a destination surface using the camera's parameters (position, zoom, size, etc.).
The class ...
0
votes
1
answer
26
views
Frustum Culling Not Utilizing Entire Bounding Sphere in OpenGL
My frustum culling is detecting an object as culled even though not the entire object's bounding sphere is out of the frustum yet. It's like it believes the bounding sphere's radius is smaller than it ...
0
votes
0
answers
57
views
Pyglet - How can I add a bloom postprocessing step to my scene?
I have a simple Pyglet scene below. I would like to apply a postprocessing step to add bloom to the scene. How can this be done using pyglet?
I've tried looking through all the documentation for ...
0
votes
0
answers
39
views
How can I change checkers pieces to move only horizontally and vertically?
I am a beginner level programmer trying to learn Python. I could not figure out how to change the values so I can restrict the pieces of checkers from moving diagonally. I want them to be able to move ...
0
votes
0
answers
36
views
0
votes
0
answers
32
views
Collision glitches when player runs into side of a wall
I am coding a game for fun, and I am trying to implement collision; specifically, I want the player to be able to move to the side even when ramming into a wall diagonally (I had this problem before, ...
1
vote
1
answer
56
views
Player not sliding on the side of a wall when two keys are pressed
I am making a game right now, and I am working on collision for different Rect walls (all of their data is stored in a list). It works great, except for one problem:...
0
votes
0
answers
134
views
Building a game in Unity with Python OpenCV and MediaPipe
In Python, I have OpenCV and MediaPipe for the hand tracking controls for the Unity, and I want to build the game without opening the PyCharm to read the hand. Is there any way to build the project ...
0
votes
0
answers
106
views
Collision between a sprite and a rect in PyGame
I'm trying to make a simple platformer game, which has code to move the camera towards a player as they jump around.
Now I have two classes: one for the player, and one for the platform.
In the ...
0
votes
0
answers
13
views
How offset is working in UE5.3 Rigging editor
How to get local offset of a control with Python in UE RigEditor? I’ve found a function to get global offset unreal.RigHierarchy.get_global_control_offset_transform ...
2
votes
2
answers
95
views
How to stop moving a sprite if the user is holding down the opposing moving key at the same time?
I am new to creating games with graphics, and I want to make a very hard game. I have the movement down, but it has a weird bug where it if the user presses down the opposing movement key (i.e. A is ...
0
votes
0
answers
53
views
Full Unreal engine API support in Python?
I'm a newbie to the Unreal engine, and I've seen that there is very little documentation and examples of Python in the Unreal engine, so I'd like to ask if, leaving out the gameplay functionality, we ...
0
votes
0
answers
33
views
How to implement and understand Clipping
I am writing a 3D renderer from scratch in Python using PyGame and Numpy. I have the basics implemented, which are working well. I have noticed that when you get too near to objects, the objects ...