Skip to main content
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
Results tagged with
Search options not deleted user 89823

Python is a dynamically and strongly typed programming language that encourages readability.

3 votes

Rotating hitboxes in PyGame?

Building on Tyyppi_77's answer above, there are a few approaches you can take: 1) Resizing the hit box (as he suggests) - although you can do it much much easier just by using image.get_rect(), which …
Chris's user avatar
  • 191
0 votes
Accepted

Python collision left works, but not right

A good way to handle this is to use a separate variable for your position - one which can be a float. Do your calculations on this variable, and then just use that to set your rect position each fram …
Chris's user avatar
  • 191
2 votes
Accepted

How should I make a jump-timing game's character static on screen?

You're overthinking it. For the dinosaur game, you need 2 sprites (don't worry about the pterodactyl or different sized cactuses yet): Dino The dino doesn't move left/right - he stays in the same …
Chris's user avatar
  • 191