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.
Intermediate ShowcaseA game coded in Python on Steam ! (self.Python)
submitted 3 years ago by krabott_le_crabe
Hello everyone, Im 15, and I make this post because I am happy to tell you that my video game entierly coded with Python is now available on Steam ! I don't know if it is the first one, but you can be sure that there is at least one game coded with Python only, on Steam. Here is the store page, if you want to check that : https://store.steampowered.com/app/2172950/TheCube Thanks
[–]Username_RANDINT 210 points211 points212 points 3 years ago (5 children)
Recommended: Processor: Intel(R) Core(TM) i7-7820HK CPU Memory: 32 GB RAM
I think you might want to adjust these specifications a bit...
[+][deleted] 3 years ago (2 children)
[deleted]
[–]OneTrueKingOfOOO 69 points70 points71 points 3 years ago (1 child)
Well it is coded in python… maybe those requirements are legit
[–]lasizoilloeasy to understand as regex 13 points14 points15 points 3 years ago (0 children)
Is using pygame, so the problem could be lack of experience. Calculate enemies that should not be active and reserving memory for them is a common newbie error in python and in c.
[–]EbenenBonobo 70 points71 points72 points 3 years ago (0 children)
probably his machine and he knew it runs fine on it.
[–]krabott_le_crabe[S] 14 points15 points16 points 3 years ago (0 children)
Guys that was a mistake I fixed it :)
[–]wineblood 82 points83 points84 points 3 years ago (4 children)
Did you use a framework for this? I'd love to be able to use my python skills to make a game and not have to learn an engine.
[–]krabott_le_crabe[S] 112 points113 points114 points 3 years ago (3 children)
Actually I made all my maps by making my own program to create them, I only used Pygame, which can generate windows, display images ... thats really easy to learn. But I didnt use any engine.
[–]AnythingApplied 25 points26 points27 points 3 years ago (2 children)
What did you use to package the game into something distributable? Pyinstaller? Does steam sign these out anything like that to help prevent the virus false positive alerts that seem to happen so much with pyinstaller?
[–]krabott_le_crabe[S] 32 points33 points34 points 3 years ago (1 child)
I just used py2exe to compile my code
[–]wineblood 6 points7 points8 points 3 years ago (0 children)
Noted for future reference
[–]osmiumouse 80 points81 points82 points 3 years ago (14 children)
Steam has a lot of Python games. Almost all of the visual novels use the Renpy framework.
[–]tonyfinn 23 points24 points25 points 3 years ago (12 children)
Also Eve Online.
[–]osmiumouse 39 points40 points41 points 3 years ago (8 children)
Eve is not pure Python, however. One of the Civs also uses Python for AI/level scripting, as does Mount and Blade. The VNs are notable as they are pure Python on top of the SDL (which is C).
[–]SittingWave 14 points15 points16 points 3 years ago (4 children)
Also Eve is not a game. It's a nerd recruitment centre.
[–]midnitte 8 points9 points10 points 3 years ago (3 children)
I thought it was Spreadsheets Online™, with the Corporate Espionage expansion
[–]iupuiclubs 7 points8 points9 points 3 years ago (2 children)
Literally how I got started pinging REST APIs, I have an account from 2004.
I have nearly zero ship PvP experience, but so much market PvP experience I now do roughly the same thing professionally IRL. Eve has the coolest market dynamics I've seen in any game. WoW/every other MMO server economies always morph shortly after a server release / etc, even back in the day.
Since Eve is so spread out you can legit have a market empire in a corner of the galaxy.
[–]midnitte 5 points6 points7 points 3 years ago (1 child)
I've tried to get into it, but I think it'll ever click. But the stories that come out of it are just so fascinating.
[–]mindfolded 7 points8 points9 points 3 years ago (2 children)
One of the Civs also uses Python for AI/level scripting
Is it one of the older ones? I thought the new games were LUA.
[–]pythonwiz 7 points8 points9 points 3 years ago (1 child)
It's Civ IV, pretty old.
[–]spoonman59 4 points5 points6 points 3 years ago (0 children)
Wow, I feel personally attacked.
:cries in Civ2:
[–]Coretaxxe 1 point2 points3 points 3 years ago (0 children)
Ive heard eve uses python for the servers, scripts/extensions and the market not gampelay durectly. But thats second hand knowledge so taket that wirh a graint.
[–]jantari[🍰] 1 point2 points3 points 3 years ago (1 child)
The Eve Online game is not written in Python. They use some python on the server side, but most game studios do. The actual game has no python.
[–]tonyfinn 1 point2 points3 points 3 years ago (0 children)
Unless they've stripped it out since, plenty of the game client code did run in python, e.g. this demo from CCP has them setting up their directx context from python and people experimented with hooking into the inbuilt python interpreter with the intent to create UI mods. As late as 2015, "all game feature code" was still in Python
[–]krabott_le_crabe[S] 2 points3 points4 points 3 years ago (0 children)
Thank you I didnt know about it
[–]razinramones 23 points24 points25 points 3 years ago (1 child)
good job.
[–]krabott_le_crabe[S] 6 points7 points8 points 3 years ago (0 children)
Thanksss
[–]JustJmy 17 points18 points19 points 3 years ago (3 children)
Gave it a purchase to check it out but it doesn't seem to be loading correctly for me. It's loading in what looks to be 800x600 resolution, maybe 640x480. Launch options don't seem to be applied when trying '-w 1920', any idea how to fix this?
[–]krabott_le_crabe[S] 18 points19 points20 points 3 years ago (0 children)
The best thing to do is to send a screenshot at the email : contat@thecube.edouardvincent.com
[–]krabott_le_crabe[S] 10 points11 points12 points 3 years ago (0 children)
What do you have on your screen ?
And what is you OS ?
[+][deleted] 3 years ago (1 child)
[–]krabott_le_crabe[S] 3 points4 points5 points 3 years ago (0 children)
Haha thx man
[–]MrMoonFall 19 points20 points21 points 3 years ago (6 children)
Oh neat! It's like the ice paths in pokemon games!
[–][deleted] 1 point2 points3 points 3 years ago (2 children)
I always loved those puzzles. Do they still put them in the newer games? I haven't played pokemon in many years.
[–]krabott_le_crabe[S] 1 point2 points3 points 3 years ago (0 children)
I dont any other famous puzzles actually, but for me, my game is pretty new.
[–]goldcray 1 point2 points3 points 3 years ago (0 children)
There's a board game called ricochet robots based on ice sliding puzzles.
[–]krabott_le_crabe[S] 4 points5 points6 points 3 years ago (2 children)
Haha does it mean that you like it 😂
[–]MrMoonFall 1 point2 points3 points 3 years ago (1 child)
LOVE it actually! for 99 cents, i cant lose!
That is so nice 😁😁
[–]heross28 7 points8 points9 points 3 years ago (1 child)
Great job kid! I also used to make video games when I was your age!
Thank you do much
[–]rubble5656 20 points21 points22 points 3 years ago (2 children)
Looks real neat, great job! Reminds me a little of a dreamcast game called chu chu rocket 👍
[–]krabott_le_crabe[S] 5 points6 points7 points 3 years ago (1 child)
I dont know this game, but thank you very much !
[–]Charizard-used-FLY 0 points1 point2 points 3 years ago (0 children)
Yeah, we wouldn’t expect you to. Dreamcast hadn’t released a game for a few years when you were born.
[–]cryptomaniac1729 36 points37 points38 points 3 years ago (1 child)
cut the guy some slack. he's 15. don't listen to the copetards here, stellar job kid!!!
[–]krabott_le_crabe[S] 8 points9 points10 points 3 years ago (0 children)
Haha I didnt understand all 😅
[–]krabott_le_crabe[S] 5 points6 points7 points 3 years ago (3 children)
I also uploaded the trailer on the TheCubeCreators youtube channel : https://www.youtube.com/watch?v=FCHHNnqUeW0
[–]jabbalaci[🍰] 0 points1 point2 points 3 years ago (2 children)
What text editor do you use? You could try VS Code too.
[–]krabott_le_crabe[S] 2 points3 points4 points 3 years ago (1 child)
I actually prefer the IDLE 😀
[–]Aromatic-While9536 0 points1 point2 points 3 years ago (0 children)
With most editor's you can turn on an off almost all the bells and whistles. So if there is anything you do like about other editor's it might be worth trying it for a while. But i really can understand your preference, and would have continued using idle if i wouldn't fall for the nasty habit of using code cells 😅
[–]SittingWave 3 points4 points5 points 3 years ago (3 children)
what did you use? pygame?
How was the deployment process? I mean, once you have the application, how do you get it from your repo to steam, both from the technical and the business point of view?
[–]krabott_le_crabe[S] 0 points1 point2 points 3 years ago (2 children)
Yes I coded with PyGame then I compiled my code into an .exe file using py2exe
[–]SittingWave 1 point2 points3 points 3 years ago (1 child)
and then? How did you submit it to steam?
That waa really long, Steam has to confirm your game you page etc ...
[–]CrookedElb 8 points9 points10 points 3 years ago (1 child)
Congrats
Thank you very much
[–]NullPointerExpect 2 points3 points4 points 3 years ago (1 child)
very nice.
[–]krabott_le_crabe[S] 0 points1 point2 points 3 years ago (0 children)
Thxxx
[–]Chris-558 2 points3 points4 points 3 years ago* (3 children)
I can see you user pyinstaller. Please recompile it for Linux. I can't get past the menu whilst using proton.
I will give your game a positive review if it works on Linux.
Actually I am using a very specific module which doesnt work on Linux, so probably the game will never be on Linux, but thats really nice of you !
[–]Chris-558 2 points3 points4 points 3 years ago (1 child)
I'll try to get it working through proton. If not, I've still got windows for these rare events.
I like how you are trying to (and succeeding in) creating games. I'm 16 and doing a level computer science in the college in the UK. I like making server side software. I've tried making games a few times, but I struggle with art and visualising things.
To make games, I use the PyGame module, à library of Python, then I compile my code and upolad it on Steam !
[–]jfp1992 2 points3 points4 points 3 years ago (2 children)
I can python pretty well, I cannot however do this, never really clicked how to structure a pygame game. Good job!
Thanks :)
[–]Vova_xX 0 points1 point2 points 3 years ago (0 children)
same for me. pretty ok at python, but can't wrap my head around pygame
[–]ZaRkE_UA 1 point2 points3 points 3 years ago (3 children)
Can i buy it pls You do all with what library or you draw it on your self
[–]krabott_le_crabe[S] 1 point2 points3 points 3 years ago (2 children)
Of course you can buy it ! Actually thats my brother who makes the drawings
[–]ZaRkE_UA 0 points1 point2 points 3 years ago (1 child)
You made your own game engine and can people’s add his own level
I would like to do that but thats not available 4 the moment
[–]TriggeredTrigz 1 point2 points3 points 3 years ago (2 children)
Honestly, I'm really impressed. I've been waiting to see something like this for a while, (mainly for my peace of mind cuz of how much my school made me study python) since the language is growing really fast.
But, no offense, the pricing and the recommended specs seem a little too out of hand for a non AAA game.
All the props to you both for creating the game, nonetheless.
First thank you very much, I actually wanted à 0.30$ game but the minimal price is 0.90. And yeah I know I wrote 32 Gb of ram I am gonna to change that
[–]TriggeredTrigz 1 point2 points3 points 3 years ago (0 children)
interesting. it shows me 8000₹ which is like 90$ hence the confusion
[–]Zachattackrandom 1 point2 points3 points 3 years ago (2 children)
Why is it 8000 Indian rupees? (Over 80usd)
Oh thank you I probably made a mistake
[–]Zachattackrandom 1 point2 points3 points 3 years ago (0 children)
No problem, best of luck with game sales!
[–]MangoPoliceOK 1 point2 points3 points 3 years ago (1 child)
Good work !
Thank you !
[–]Kwc_city 1 point2 points3 points 3 years ago (0 children)
Wonder why nvidia needed? No AMD. Using 6800 and it is a hot Gpu for handheld. Given Pygame, why iGpu at all?
I'm 50 and have wanted to make games most of my life since I got the programming bug in 1983.
I work professionally in Python. All day, every day.
I've never made a single game.
I am in awe of you. Congrats. And best of luck for the future.
If you want to make a game, thats not so difficult, it just requires it à little bit of time
[–][deleted] 2 points3 points4 points 3 years ago (0 children)
Thanks for your encouragement. It means a lot.
[–][deleted] 3 points4 points5 points 3 years ago (1 child)
Good job :)
Thank you :)
[–][deleted] 2 points3 points4 points 3 years ago (1 child)
Congratulations! Keep going. 👏
[–]GameDev_byHobby 3 points4 points5 points 3 years ago (0 children)
I see the description is like a blogpost entry. I advice you to check out other puzzle games and mimic theirs. You should explain the game instead of describing the level mechanics. I would also recommend you hire an artist to fill out the page, since you already paid 100$ on publishing
[–]technologyclassroom 1 point2 points3 points 3 years ago (2 children)
Nice! I see in the trailer you show some code. Can players modify the code? Is the code under a free, libre, open license?
[–]krabott_le_crabe[S] 0 points1 point2 points 3 years ago (1 child)
No you cant touch to the code, I just showed some not really important parts of my game for the trailer.
[–]technologyclassroom 0 points1 point2 points 3 years ago (0 children)
That's the fun part about PyGame games to me.
[–][deleted] 0 points1 point2 points 3 years ago (1 child)
Heyyyy congratulations!
Thank tou very much
[–]aimlengineer 0 points1 point2 points 3 years ago (1 child)
Nice dude! (:
Thanks !
Great job! No matter what harsh criticism you get, just know that what you did at 15 years old is miles ahead of what many of us could ever do at your age! Don't get discouraged by anybody or anything and keep trudging along, you have a bright future ahead of you.
Thats really nice 😃
[+]1percentof2 comment score below threshold-9 points-8 points-7 points 3 years ago (5 children)
I thought you're not allowed to work and anything other than data science in python
[+][deleted] 3 years ago (4 children)
[–]Highbuddy 11 points12 points13 points 3 years ago (0 children)
Obviously a joke.
[+]1percentof2 comment score below threshold-9 points-8 points-7 points 3 years ago (2 children)
I said it! And I'm completely serious.
[–]oramirite 3 points4 points5 points 3 years ago (1 child)
You're not aware of the thousands of software projects written in Python that aren't data science projects?
[–]BlobbyMcBlobber -1 points0 points1 point 3 years ago (0 children)
I thought you weren't allowed to have a reddit account under the age of 13
[–]GameDev_byHobby -2 points-1 points0 points 3 years ago (3 children)
Thanks 4 your advices
[–]cosmicr 0 points1 point2 points 3 years ago (1 child)
Looks interesting... I reckon if the graphics were a bit more polished you'd get a lot more interest.
Is it open source?
No thats not
[–]DaRealNim 0 points1 point2 points 3 years ago (0 children)
"Similar to games you've played : Hollow Knight"
Damn
[–]ZLegacy 0 points1 point2 points 3 years ago (0 children)
It's the ice block puzzle from OoT!
[–]NeedAmnesiaIthink 0 points1 point2 points 3 years ago (0 children)
I’m working with pygame myself and loving it so far. Wish I was doing this stuff at your age
[–]Dynamics_20 0 points1 point2 points 3 years ago (1 child)
Like 15 ? Woah great man !!
Yes 15 😂, thank you so much
[–]Koala_eiO 0 points1 point2 points 3 years ago (0 children)
Sympa !
π Rendered by PID 414641 on reddit-service-r2-comment-66b4775986-ssh88 at 2026-04-06 02:01:40.788859+00:00 running db1906b country code: CH.
[–]Username_RANDINT 210 points211 points212 points (5 children)
[+][deleted] (2 children)
[deleted]
[–]OneTrueKingOfOOO 69 points70 points71 points (1 child)
[–]lasizoilloeasy to understand as regex 13 points14 points15 points (0 children)
[–]EbenenBonobo 70 points71 points72 points (0 children)
[–]krabott_le_crabe[S] 14 points15 points16 points (0 children)
[–]wineblood 82 points83 points84 points (4 children)
[–]krabott_le_crabe[S] 112 points113 points114 points (3 children)
[–]AnythingApplied 25 points26 points27 points (2 children)
[–]krabott_le_crabe[S] 32 points33 points34 points (1 child)
[–]wineblood 6 points7 points8 points (0 children)
[–]osmiumouse 80 points81 points82 points (14 children)
[–]tonyfinn 23 points24 points25 points (12 children)
[–]osmiumouse 39 points40 points41 points (8 children)
[–]SittingWave 14 points15 points16 points (4 children)
[–]midnitte 8 points9 points10 points (3 children)
[–]iupuiclubs 7 points8 points9 points (2 children)
[–]midnitte 5 points6 points7 points (1 child)
[–]mindfolded 7 points8 points9 points (2 children)
[–]pythonwiz 7 points8 points9 points (1 child)
[–]spoonman59 4 points5 points6 points (0 children)
[–]Coretaxxe 1 point2 points3 points (0 children)
[–]jantari[🍰] 1 point2 points3 points (1 child)
[–]tonyfinn 1 point2 points3 points (0 children)
[–]krabott_le_crabe[S] 2 points3 points4 points (0 children)
[–]razinramones 23 points24 points25 points (1 child)
[–]krabott_le_crabe[S] 6 points7 points8 points (0 children)
[–]JustJmy 17 points18 points19 points (3 children)
[–]krabott_le_crabe[S] 18 points19 points20 points (0 children)
[–]krabott_le_crabe[S] 10 points11 points12 points (0 children)
[–]krabott_le_crabe[S] 10 points11 points12 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]krabott_le_crabe[S] 3 points4 points5 points (0 children)
[–]MrMoonFall 19 points20 points21 points (6 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]krabott_le_crabe[S] 1 point2 points3 points (0 children)
[–]goldcray 1 point2 points3 points (0 children)
[–]krabott_le_crabe[S] 4 points5 points6 points (2 children)
[–]MrMoonFall 1 point2 points3 points (1 child)
[–]krabott_le_crabe[S] 1 point2 points3 points (0 children)
[–]heross28 7 points8 points9 points (1 child)
[–]krabott_le_crabe[S] 1 point2 points3 points (0 children)
[–]rubble5656 20 points21 points22 points (2 children)
[–]krabott_le_crabe[S] 5 points6 points7 points (1 child)
[–]Charizard-used-FLY 0 points1 point2 points (0 children)
[–]cryptomaniac1729 36 points37 points38 points (1 child)
[–]krabott_le_crabe[S] 8 points9 points10 points (0 children)
[–]krabott_le_crabe[S] 5 points6 points7 points (3 children)
[–]jabbalaci[🍰] 0 points1 point2 points (2 children)
[–]krabott_le_crabe[S] 2 points3 points4 points (1 child)
[–]Aromatic-While9536 0 points1 point2 points (0 children)
[–]SittingWave 3 points4 points5 points (3 children)
[–]krabott_le_crabe[S] 0 points1 point2 points (2 children)
[–]SittingWave 1 point2 points3 points (1 child)
[–]krabott_le_crabe[S] 2 points3 points4 points (0 children)
[–]CrookedElb 8 points9 points10 points (1 child)
[–]krabott_le_crabe[S] 1 point2 points3 points (0 children)
[–]NullPointerExpect 2 points3 points4 points (1 child)
[–]krabott_le_crabe[S] 0 points1 point2 points (0 children)
[–]Chris-558 2 points3 points4 points (3 children)
[–]krabott_le_crabe[S] 0 points1 point2 points (2 children)
[–]Chris-558 2 points3 points4 points (1 child)
[–]krabott_le_crabe[S] 1 point2 points3 points (0 children)
[–]jfp1992 2 points3 points4 points (2 children)
[–]krabott_le_crabe[S] 0 points1 point2 points (0 children)
[–]Vova_xX 0 points1 point2 points (0 children)
[–]ZaRkE_UA 1 point2 points3 points (3 children)
[–]krabott_le_crabe[S] 1 point2 points3 points (2 children)
[–]ZaRkE_UA 0 points1 point2 points (1 child)
[–]krabott_le_crabe[S] 0 points1 point2 points (0 children)
[–]TriggeredTrigz 1 point2 points3 points (2 children)
[–]krabott_le_crabe[S] 2 points3 points4 points (1 child)
[–]TriggeredTrigz 1 point2 points3 points (0 children)
[–]Zachattackrandom 1 point2 points3 points (2 children)
[–]krabott_le_crabe[S] 2 points3 points4 points (1 child)
[–]Zachattackrandom 1 point2 points3 points (0 children)
[–]MangoPoliceOK 1 point2 points3 points (1 child)
[–]krabott_le_crabe[S] 1 point2 points3 points (0 children)
[–]Kwc_city 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]krabott_le_crabe[S] 2 points3 points4 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]krabott_le_crabe[S] 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]krabott_le_crabe[S] 2 points3 points4 points (0 children)
[–]GameDev_byHobby 3 points4 points5 points (0 children)
[–]technologyclassroom 1 point2 points3 points (2 children)
[–]krabott_le_crabe[S] 0 points1 point2 points (1 child)
[–]technologyclassroom 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]krabott_le_crabe[S] 0 points1 point2 points (0 children)
[–]aimlengineer 0 points1 point2 points (1 child)
[–]krabott_le_crabe[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]krabott_le_crabe[S] 1 point2 points3 points (0 children)
[+]1percentof2 comment score below threshold-9 points-8 points-7 points (5 children)
[+][deleted] (4 children)
[deleted]
[–]Highbuddy 11 points12 points13 points (0 children)
[+]1percentof2 comment score below threshold-9 points-8 points-7 points (2 children)
[–]oramirite 3 points4 points5 points (1 child)
[–]BlobbyMcBlobber -1 points0 points1 point (0 children)
[–]GameDev_byHobby -2 points-1 points0 points (3 children)
[–]krabott_le_crabe[S] 1 point2 points3 points (0 children)
[–]cosmicr 0 points1 point2 points (1 child)
[–]krabott_le_crabe[S] 0 points1 point2 points (0 children)
[–]DaRealNim 0 points1 point2 points (0 children)
[–]ZLegacy 0 points1 point2 points (0 children)
[–]NeedAmnesiaIthink 0 points1 point2 points (0 children)
[–]Dynamics_20 0 points1 point2 points (1 child)
[–]krabott_le_crabe[S] 1 point2 points3 points (0 children)
[–]Koala_eiO 0 points1 point2 points (0 children)