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 73115

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

-2 votes
1 answer
62 views

How To Extract A File In A Relative Location With Python? [closed]

I'm trying to extract a file with python 3(for my game launcher), and this is the code I'm using: import zipfile f = open('filenamehere.zip', 'rb') z = zipfile.ZipFile(f) for name in z.namelist(): …
user3339168's user avatar
4 votes
2 answers
6k views

Line Collision In Pygame?

I am working on a game(a platformer) that is physics and momentum based. I want to make it so that the player(a single dot) can bounce off of the lines with correct physics, but to do that, I need to …
user3339168's user avatar
0 votes
Accepted

Line Collision In Pygame?

I figured it out. Since lines can be seen as equations, you can detect if the player(or whatever)'s rise is equal(or similar) to the rise of the line. To convert a line to a segment, just make pygame …
user3339168's user avatar
2 votes
2 answers
2k views

How To Blit an Image onto Only Opaque Parts of a Surface?

I want to blit an image onto the parts of a surface that aren't transparent. I was wondering if there were a quick way to do this in Pygame. I want to be able to add effects to stuff. I know that I c …
user3339168's user avatar
1 vote
1 answer
4k views

How can I take a screenshot of a certain part of the screen in PyGame?

I need to for my pixel art tool that I'm making to help myself make games.
user3339168's user avatar
1 vote
1 answer
600 views

What Is A Good Way To Make A Self Updating Game? (Python) [closed]

(In python 3.) …
user3339168's user avatar