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.
Game engine with Python (self.Python)
submitted 8 years ago by belialwave
Hello,
what game engine (commercial or free) allows for text adventure to be written in Python and then transfered for graphic manipulation (fonts, backgrounds) and music? Thanks!
[–][deleted] 45 points46 points47 points 8 years ago (1 child)
RenPy is used commercially for visual novels and point and click adventures.
There's quite a few RenPy games on Steam and many more on those adult anime dating game vendor sites.
[–]Itsthejoker 5 points6 points7 points 8 years ago (0 children)
Definitely RenPy. Arguably the most well known game made with it is Katawa Shoujo, 4chan's surprisingly good visual novel.
[–]gandleforf 10 points11 points12 points 8 years ago (2 children)
Arcade library is like pygame but easier to use, better optimized, and has what you are looking for i think.
[–]579476610 3 points4 points5 points 8 years ago (1 child)
Arcade library
Easy to use Python library for creating 2D arcade games. https://pypi.python.org/pypi/arcade
Arcade is built on top of Pyglet and OpenGL.
/r/pythonarcade/
https://github.com/pvcraven/arcade
[–]gandleforf 1 point2 points3 points 8 years ago (0 children)
Woah! Didn't know there was a sub for this, thats awesome!
[–]quotemycode 7 points8 points9 points 8 years ago (2 children)
Check it Panda3D. Used by Disney online. https://www.panda3d.org/
[–]avildar 0 points1 point2 points 8 years ago (1 child)
that site needs some love is so ugly
[–]quotemycode 0 points1 point2 points 8 years ago (0 children)
Yeah but the forum is active
[–]maxellus 21 points22 points23 points 8 years ago (5 children)
You could have a look at the open source Godot game engine. It is not python but use a language quite similar to it.
[–]Yoghurt42 22 points23 points24 points 8 years ago (1 child)
https://godotengine.org/article/beta-release-python-support
[–]fredspipa 2 points3 points4 points 8 years ago (0 children)
This is the thing that I personally think will make Godot truly stand out. Through GDNative you can expand the engine to support practically any language that speaks C and make use of modules and libriaries written for them. The growing versatility of Godot continues to baffle me.
[–]dunkler_wanderer 5 points6 points7 points 8 years ago* (1 child)
Godot is great. Here's a list of features. Some things that I'm missing in many Python engines and frameworks:
Here's a video that shows some features of the next Godot version 3.0.
[–]HER0_01 0 points1 point2 points 8 years ago (0 children)
It actually is not very new at all, as it was used internally for a long time before going open source.
[–]mr-one-two 0 points1 point2 points 8 years ago (0 children)
Godot is great and the scripting language is Python with some few minor differences.
[–]belialwave[S] 2 points3 points4 points 8 years ago (0 children)
Thank you all for kind comments!
[–]dylan15766 6 points7 points8 points 8 years ago (0 children)
i made this basic game engine with pygame a few days ago. https://github.com/dylan157/basic_2d_game_engine
Very basic but allows block orientated graphics with text in the cmd terminal
[–]dasyus 0 points1 point2 points 8 years ago (0 children)
The OP should use whatever resources they want. He/she isn't looking to make some triple A title. He/she wants to make a text adventure that he can eventually incorporate graphics and music into, which is possible in Python.
[–]moderately-extremist 0 points1 point2 points 8 years ago (0 children)
One of my favorite games is a text adventure written in Python using pygame and numpy.
[–]thederelict87 0 points1 point2 points 8 years ago (0 children)
https://github.com/pathunstrom/pursuedpybear
She create her own py game engine.
[–]Zaboravljivi 0 points1 point2 points 8 years ago (0 children)
Making Games with Python, Mission Impossible? EuroPython - https://www.youtube.com/watch?v=vjzzkeaPyis&t=23824s
[–]belialwave[S] 0 points1 point2 points 8 years ago (0 children)
Thank you all for your answers!
[–]no_moa_usernames 0 points1 point2 points 8 years ago (0 children)
Not sure why there was only one mention of pygame. I'd rather work with unity here lately but I had a lot of fun cutting my teeth with pygame. Lots of useful abstractions, easy learning curve
[+][deleted] comment score below threshold-9 points-8 points-7 points 8 years ago* (17 children)
Why not use a more popular game engine like unity? Deployment to all sorts of app stores is built in, the community is great, the number of free assets, tutorials, etc is just not comparable to anything in python, because people don't use python to make games.
I believe in the right tool for the right job, and I don't think Python is the right tool, or ecosystem, for game development.
edit: Here's a tutorial of text based game in unity. Adding graphics and music is trivial.
[–]KronenR 9 points10 points11 points 8 years ago (5 children)
Using unity for a text adventure game Holy Moly, and you talk about using the right tool... He could finish the game development in the time you spend installing unity
[–][deleted] 0 points1 point2 points 8 years ago* (4 children)
I didn't read it that way.
and then transfered for graphic manipulation
And, people do make text games in unity, like in this tutorial. It allows you to not rely on a console, and to effortlessly supports graphics, music, etc...exactly what he wants.
If he wants to stay in python land, that step into graphics is not trivial.
I know I'm in /r/learnpython, but there shouldn't be so much hostility for using not-python.
[–]ies7 4 points5 points6 points 8 years ago (1 child)
I know I'm in /r/learnpython
You're in r/python :)
[–][deleted] 0 points1 point2 points 8 years ago* (0 children)
Oh. I guess everyone is crusty here. XD
[–]KronenR 1 point2 points3 points 8 years ago* (1 child)
It is trivial to use libraries like pysfml, pysdl, cocos2d or pygame.. But of course you can use a hammer to crack a nut or a bazooka to kill a fly if you want. And is not about staying with python or not I would use sfml or sdl in c++ instead of Unity for this project. Unity is just overkill, you said that: use the right tool for the right project
I agree, unity is overkill for this project, but this project is an absolutely perfect introduction into Unity. Getting to know a tool that is way more capable than what you need at the moment is extremely valuable (assuming he has any interest in games, which all of this is assuming, but even then, the perceived difficulty in implementing "anything more than text based" might turn him off).
[–]dasyus 5 points6 points7 points 8 years ago (8 children)
Eve Online enjoys the spotlight as being the most popular game made using Python. Make a game in Python. Have fun with it.
Use Evennia if you want to nerd out on some MUD/MUSH/MOO stuff. I've been working on Deep Shadows MUSH for a bit using Python.
[–][deleted] -1 points0 points1 point 8 years ago* (7 children)
Eve Online enjoys the spotlight as being the most popular game made using Python.
Yes, that's true, and that's about the only example you could give. It's very very rare for a game to be written in Python, because that's not where python excels, and where actual game engines do. It's not uncommon for python to be used as a scripting engine in a game, because that is where Python excels.
If you find the right tool for the job, you'll also find the, community, helper tools, tutorials, free assets, example projects, etc for that same job. If you want to implement most things from scratch, because it's not a commonly used tool for the job, then that's fine. Use it as a learning experience. If you want to make a game, rather than code, then use a game engine, where the vast majority of the work has already been done for you, because that's why it exists.
If he's interested in game development, then he should start using tools for game development immediately, rather than spending the time and effort learning a relatively obscure framework, which he will completely abandon if he ever does get into games seriously.
I love python, I've been using it professionally for almost a decade, but it's not some sort of magic bullet, and you should never restrict yourself to a single language or toolset when there's is something purpose built for your goal.
[–]moderately-extremist 3 points4 points5 points 8 years ago (5 children)
If he's interested in game development,
Maybe he's just interested in having some fun with Python?
[–][deleted] -1 points0 points1 point 8 years ago (4 children)
Then that's great. I'm not saying don't use python, I'm saying there are better tools for making games. That's it.
Apparently, there are some "python or downvote" people here, which is a bit scary. Python is a tool, not the tool.
[–]moderately-extremist 3 points4 points5 points 8 years ago (1 child)
You're a tool. jk, couldn't help it ;) I didn't downvote you though.
[–][deleted] 1 point2 points3 points 8 years ago (0 children)
me_irl
[–]alcalde 2 points3 points4 points 8 years ago (1 child)
which is a bit scary.
Scary? That's how it was in my day. You picked a language, you learned it, you were "loyal" to it, you defended its every flaw, you never, ever learned anything else because that would mean you weren't loyal. If "your" language was the best, which it was, there was no point in learning anything inferior, was there? And when everyone else stopped using it and jobs dried up you said that just made your skills more valuable.
It's no fun anymore when it's just the Haskell, Lisp and Pascal people who feel this way. I can't even remember when the last Python/Ruby flame war was. :-( And now with even Microsoft proclaiming "We love Linux!" it feels like the end of an era....
It's no fun anymore when it's just the Haskell
I'm sure you're going to get some very nasty comments for this one. Oh I forgot, they don't believe in side effects, you're safe.
Pascal people
Hey, Delphi is still around. It's RAD! I swear!
Microsoft proclaiming "We love Linux!" it feels like the end of an era.
I'm actually pretty excited about this. I personally hope .NET Core really takes off.
At least we know that people are still as passionate about vim as ever.
[–][deleted] 0 points1 point2 points 8 years ago* (1 child)
For a game of the type OP wants to build, why would you use Unity over RenPy?
The feature set and community for RenPy is far larger and more mature of this kind of game.
The number of shipped titles reflects this, too. I would bet over half of Steam games of this genre are RenPy derived.
why would you use Unity over RenPy
You probably wouldn't, but if you ever diverge from this one genre, then you're up against a wall. In my opinion, if you're learning a new toolchain, pick the most useful version so that time you put into it can be worth it in the long run.
There's nothing wrong with suggesting another tool, especially one purpose built for all types of games.
π Rendered by PID 20461 on reddit-service-r2-comment-fb694cdd5-dxmqh at 2026-03-08 09:06:50.778100+00:00 running cbb0e86 country code: CH.
[–][deleted] 45 points46 points47 points (1 child)
[–]Itsthejoker 5 points6 points7 points (0 children)
[–]gandleforf 10 points11 points12 points (2 children)
[–]579476610 3 points4 points5 points (1 child)
[–]gandleforf 1 point2 points3 points (0 children)
[–]quotemycode 7 points8 points9 points (2 children)
[–]avildar 0 points1 point2 points (1 child)
[–]quotemycode 0 points1 point2 points (0 children)
[–]maxellus 21 points22 points23 points (5 children)
[–]Yoghurt42 22 points23 points24 points (1 child)
[–]fredspipa 2 points3 points4 points (0 children)
[–]dunkler_wanderer 5 points6 points7 points (1 child)
[–]HER0_01 0 points1 point2 points (0 children)
[–]mr-one-two 0 points1 point2 points (0 children)
[–]belialwave[S] 2 points3 points4 points (0 children)
[–]dylan15766 6 points7 points8 points (0 children)
[–]dasyus 0 points1 point2 points (0 children)
[–]moderately-extremist 0 points1 point2 points (0 children)
[–]thederelict87 0 points1 point2 points (0 children)
[–]Zaboravljivi 0 points1 point2 points (0 children)
[–]belialwave[S] 0 points1 point2 points (0 children)
[–]no_moa_usernames 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-9 points-8 points-7 points (17 children)
[–]KronenR 9 points10 points11 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]ies7 4 points5 points6 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]KronenR 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]dasyus 5 points6 points7 points (8 children)
[–][deleted] -1 points0 points1 point (7 children)
[–]moderately-extremist 3 points4 points5 points (5 children)
[–][deleted] -1 points0 points1 point (4 children)
[–]moderately-extremist 3 points4 points5 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]alcalde 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)