New answers tagged python
1
vote
Accepted
How can I improve vector collision algorithm?
OP here. I realized I should follow up on this question, since there were no formal answers.
The advice from @DMGregory seems solid, but for the project in question I actually did none of that. I took ...
0
votes
How to detect when a keyboard arrow key is held down in turtle graphics?
The tail end of the existing answer is good, suggesting an update loop with decoupled event handlers.
But I'd go a step further. Instead of applying movement in the key handlers as done in that answer,...
0
votes
How do I add collision between two player controlled turtles
The existing answer neglects the builtin turtle .distance() method which trivializes this:
...
0
votes
Avoiding Global Variables in Event Driven Programming
First off is "procedural event driven programming" a thing?
Sure, since you just did it! And it does seem appropriate for a program like this.
I have written a simple Snake game in Python ...
0
votes
How would I make my Python game Moddable?
Even if we're OK with the approach being totally unsafe, OP's answer still doesn't offer a sensible solution, since loops and functions, or anything multi-line can't be used in the mods file, and the ...
Top 50 recent answers are included
Related Tags
python × 635pygame × 344
collision-detection × 61
2d × 33
opengl × 29
sprites × 26
c++ × 22
pyglet × 19
optimization × 18
physics × 17
3d × 16
mathematics × 16
unity × 15
scripting × 14
animation × 13
architecture × 13
movement × 13
c# × 12
procedural-generation × 12
vector × 11
image × 11
tilemap × 10
rotation × 9
algorithm × 9
graphics × 9