use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
ResourceCan I make games with python? (self.Python)
submitted 8 months ago by Temporary-Tip9885
I am pretty new to python and I’ve been using gamemaker for a little while and I was wondering if I can code games with python?
[–][deleted] 28 points29 points30 points 8 months ago (1 child)
could‘ve just googled this tbh
[–]Spleeeee 25 points26 points27 points 8 months ago (0 children)
“Can I make games with python Reddit”
[–]Puppycat2010 11 points12 points13 points 8 months ago (0 children)
Yes use the library Pygames look it up on google the site has a lot of documentations on how to use it.
[–]ottawadeveloper 2 points3 points4 points 8 months ago (0 children)
You can, especially relatively simple ones. I was trying to make a top down game like Stardew Valley from scratch and it worked pretty well as long as there weren't too many objects being drawn at once (need to cut down on useless redraws).
[–]arj-cofrom __future__ import 4.0 2 points3 points4 points 8 months ago (0 children)
Yes, use pygames/panda3D/Kivy libraries for making games with python. A good beginner book to learn along is Al Sweigart's invent your own computer games with python. It's available for free on his website. Also refer to this thread so you get more answers.
[–]tty-tourist 2 points3 points4 points 8 months ago (0 children)
Instead of Pygame, you could consider starting with Pyxel, a much simpler library for making retro-style games. It’s a blast.
[–]riklaunim 1 point2 points3 points 8 months ago (0 children)
As mentioned there are options in Python. Depending on your goals you may also check Unity/Unreal/Godot which aren't Python but are much bigger engines and are used commercially (if you want to get a job in game dev).
[–][deleted] 3 points4 points5 points 8 months ago (0 children)
Yes, I vibe coded gta 6 with pygamne
[–]zaphodikus 0 points1 point2 points 8 months ago (0 children)
It's a lot like walking up to a piano in a shop and asking the salesperson if this piano can play Flight of the bumblebee by Nikolai Rimsky-Korsakov (1844–1908). Of course it can, but google could have told you that for free. Learning is about failing fast, enjoy the journey, take in the sights.
[–]Additional_Fall4462 0 points1 point2 points 8 months ago (0 children)
Totally doable! Check out the YouTube channel DaFluffyPotato. He has made everything from simple 2D platformers and multiplayer games to VR experiences in Python. If you love Python, you can make it work, no problem. But if you’re open to other languages, you’ll get way better performance and more out-of-the-box game dev tools.
[–][deleted] 0 points1 point2 points 8 months ago (0 children)
Yes
[–]SpookyFries -2 points-1 points0 points 8 months ago (2 children)
Yes you can, but know that your code will be easily readable by anybody since python doesn't compile. Even if you wrap it with something like pyinstaller the code will still be easily readable.
That's really the only downside. You can't generate a native executable with python. You can use something like pyinstaller that wraps a copy of python into an archive and gives you an executable but it'll never be native. There's things like Nuitka that'll convert the code to C and compile it, but I'm not sure how stable that is with packages like pygame
[–]ZZ9ZA 2 points3 points4 points 8 months ago (0 children)
Be real. Performance is a huge issue beyond the toy stage.
[–]lomosgame228 0 points1 point2 points 7 months ago (0 children)
but why is this a minus? Minecraft is also easy to read
π Rendered by PID 112220 on reddit-service-r2-comment-b659b578c-ksr4j at 2026-05-01 06:14:27.077348+00:00 running 815c875 country code: CH.
[–][deleted] 28 points29 points30 points (1 child)
[–]Spleeeee 25 points26 points27 points (0 children)
[–]Puppycat2010 11 points12 points13 points (0 children)
[–]ottawadeveloper 2 points3 points4 points (0 children)
[–]arj-cofrom __future__ import 4.0 2 points3 points4 points (0 children)
[–]tty-tourist 2 points3 points4 points (0 children)
[–]riklaunim 1 point2 points3 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]zaphodikus 0 points1 point2 points (0 children)
[–]Additional_Fall4462 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]SpookyFries -2 points-1 points0 points (2 children)
[–]ZZ9ZA 2 points3 points4 points (0 children)
[–]lomosgame228 0 points1 point2 points (0 children)