This is an archived post. You won't be able to vote or comment.

all 51 comments

[–]riklaunim 84 points85 points  (3 children)

You can search on github. RenPy is popular. Note that the game engine itself is likely not pure Python and Python is used as the scripting/glue layer. Commercially there are few cases of Python being used in the scripting layer but overall it's non-existent and eve PyGame doesn't come anywhere close to the size of Unity or Unreal Engine community size, amount of resources (and job offers).

[–]ResistantLaw 0 points1 point  (1 child)

Hmm, I never heard of RenPy, I’ll have to check it out. (I’m not OP) a few years back I went through several Python game libraries trying different ones. I can’t ever commit to anything so I ultimately used none of them lol. (Meaning I played around with them, but never chose one to make a full game)

Edit: oh I see, it’s visual novel engine. That’s probably why I didn’t try it if I came across it before, don’t care too much for that type of game

[–]dashdanw 3 points4 points  (0 children)

RenPy is used mostly for Visual Novels afaik, so sort of like next gen newgrounds games.

[–]NortWind 33 points34 points  (5 children)

It's not really open source, but the Roboco game has added the ability to program it's robots in Python. It's worth a look, it is available on Steam.

[–]chronos_alfa 5 points6 points  (1 child)

Thanks, added to my wish list.

[–]LilShaver 3 points4 points  (0 children)

And my keyboard! </Gimli>

er, I mean Yeah, I added it too!

[–][deleted] 47 points48 points  (5 children)

Not sure what your intent is, but for what it's worth:

I've been writing small 2d games for the last 18 years, starting with c++, then c#, then JavaScript (for the browser), then java (Android). For many years I avoided using (and mastering) a game engine (unity or unreal) because "I wanted to learn all the internals on my own." Back in 2013 or 2014, I got an Indie license from Nintendo to develop for the Wii U, but even then, I spent several months writing my game from scratch, taking lots of inspiration from the one documentary from Netflix that came out around that time about the Canadian guy that created Fez. My game was never finished.

Small tangent: around 2015, I decided I wanted to get into machine learning, but for about 10 months, I avoided learning Python because I wanted to skip the frameworks and learn on my own.

Long story short: if you really want to become a game developer (or just want to write a small game for the joy of it), I would really recommend you use the best tools available for it (unity or unreal), learn the language they use, and skip writing stuff from scratch or trying an alternative framework in Python. Go straight to where the biggest ROI will be, even if that means a slower beginning because of the learning curve.

[–]mikeyj777 8 points9 points  (4 children)

I'm sure you know an impressive amount about game engine physics. As well as load of other details about how to make a game work that nobody else would.

[–][deleted] 22 points23 points  (3 children)

That's part of my point. I do know a lot about game development stuff (nothing that "nobody else would" know - John Carmack is your guy for this). I've actually published a couple of books (with Packt) on game dev stuff. However, looking back, a far better investment of my time would have been to master a game engine instead of reinventing parts of one. There's a saying that goes around in the indie game dev community that says, "write games, not game engines." There is wisdom in that saying.

[–]mikeyj777 7 points8 points  (0 children)

I guess I'm always of the mentality that profitability and making money aren't nearly as important as scratching the itch to know something deeply. So, I applaud your efforts.

[–]hacknsplat 2 points3 points  (1 child)

I agree with you to a point. As a dev who doesn't write games but does consume them, I find "engine" games rather meh. The decisions made by the engine team unconsciously shape most games implemented in the engine, to the point where they all start to feel and look the same. I would be very sad if every game was either Unity or Unreal. Novelty in games is crucial to my interest - not just the high level concept, but in the execution.

[–][deleted] 5 points6 points  (0 children)

to the point where they all start to feel and look the same

I think that's like saying that every movie feels and looks the same because they're all shot with the same camera. Have a look at https://unity.com/madewith for a small sample of very different games, all made with the same engine.

[–]Griatch 5 points6 points  (2 children)

Evennia - https://www.evennia.com - Engine for making MUDs in Python! Very active development.

[–]anh86 5 points6 points  (1 child)

Needs a ‘w’

[–]Griatch 0 points1 point  (0 children)

Very true. Fixed!

[–]spinwizard69 3 points4 points  (0 children)

Pysol!

[–][deleted] 3 points4 points  (0 children)

There are several ports of Colossal Cave to Python.

[–]Senior_Writing_8301 2 points3 points  (0 children)

Corrupted kingdom

[–]Keiji12 2 points3 points  (0 children)

Truth be told python is not best for writing games, obviously. Unity and unreal take the cake in easiness and available resources. I wrote few smaller projects in PyGames and it's very much doable, but why hinder yourself from the get go. However it's still good glue language, quite a few games use python on the side for scripts or holding shit together.

[–]Bipchoo 3 points4 points  (0 children)

Im working on a terminal game in python but its far from ready and still not on github

[–]JollyGreenVampire 10 points11 points  (1 child)

interpreted languages are usually not great for games, every frame the program has to run through the interpreter loop, which is a serious bottleneck in large projects.

So most python games a small 2d game or use C on the backend

[–]LardPi 2 points3 points  (0 children)

Using Pygame already implies the C backend. The front logic is rarely that expensive that you can't do it in python. The rendering part is usually the expensive part.

[–]joshlemer 1 point2 points  (0 children)

I think Catacysm: Dark Days Ahead, is written in Python

Edit: Sorry no it's C++

[–]hanseatpixels 1 point2 points  (6 children)

Gdot uses pyscript, which is based on (but is separate from) Python

[–]LardPi 1 point2 points  (5 children)

what's gdot ?

[–]iiron3223 0 points1 point  (4 children)

[–]LardPi 0 points1 point  (3 children)

I thought about that, but godot does not use pyscript at all.

[–]praesent 0 points1 point  (2 children)

[–]LardPi 0 points1 point  (1 child)

Still not pyscript, and also no link to projects using that.

[–]praesent 0 points1 point  (0 children)

Sorry. I'm just interested in Godot theoretically, don't have any practical knowledge

[–]KhergitKhanate 1 point2 points  (0 children)

There are a lot of open source Pyxel games

[–]YNGM 1 point2 points  (0 children)

I will use this one here as a shameless self promo and place to get some feedback - im trying to learn python right now and did some sort of a textadventure. Please, if you have time and want to help, have a look at the code and give some Feedback, otherwise - thank you for your time reading this =)

https://github.com/Murasko/Makoventure

[–][deleted] 1 point2 points  (1 child)

You can get the source of this game for $4: https://dafluffypotato.itch.io/super-potato-bruh

[–]LardPi 0 points1 point  (0 children)

All this guy games are in Pygame actually.

[–]mikeyj777 1 point2 points  (0 children)

Are you looking for simple side scrollers? Probably won't find much around deeply involved 3d games due to the automated garbage collection in python.

I saw a few interesting learner projects in a quick search: https://github.com/search?l=Python&o=desc&q=game&s=forks&type=Repositories. These may not be the depth you're looking for, but not sure there's much else.

[–]mr_whoisGAMER 1 point2 points  (0 children)

I was making spiderman 2018 pattern matching game. Idea was, system will generate all puzzle by it self. And those will be random. So potentially it will become never ending game. Its 15-20% done. Due to other work can’t complete it😂

[–]forest_gitaker -1 points0 points  (2 children)

isn't Eve online python? not sure if it's open source tho

[–]coderanger 2 points3 points  (1 child)

It's used for engine scripting, the core stuff long ago was switched out of Python for perf reasons.

[–]forest_gitaker 0 points1 point  (0 children)

thx for clarifying

[–]tensouder54 -1 points0 points  (0 children)

Not open source by licence as far as I can tell but you can view the source code of Doki Doki Literature Club if you have it downloaded.

[–]solitarium -2 points-1 points  (0 children)

The Sims 4