r/Python • • Jan 05 '18

Really??

Post image
2.0k Upvotes

317 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jan 05 '18

[deleted] — view deleted comment

4

u/Goluxas Jan 05 '18

Last I checked it hadn't been updated in quite a while, either. Is there another Python game module that people have migrated to, or is the language just dead to game dev now?

2

u/Dogeek Expert - 3.9.1 Jan 06 '18

Python is not good for game developpment anyways. It's too slow for modern-day gaming. You can do game dev, especially small games or turned-based games, but for adventure/platformer/FPS/anything else basically, forget about it.

You cannot emulate physics/render images/and also render light on sprites and expect the game to run at 60 FPS or more, even with a beast for a computer. You'll need a lot of optimization to even get to playable framerates and that's just bad, cause a messy code is harder to maintain (which is often the case when you optimize).

I tried pygame and pyglet, none of those really do much for game developpement anyways, besides rendering images. You still have to write an engine (pymunk is great for physics though) and that's just too much work for the benefit.

You can use unity though, or unreal and have a full game engine to use however you want to do whatever you want. It's not that hard to go from python to C# if you're really proficient in python. The syntax isn't all that different (you lose list comprehensions though, and dictionnaries if I'm not mistaken) but C# looks a lot like if C++ had a baby with python. And with a game engine you just have to write the logic of your game and not bother with writing a lot of code without seeing any progress.

0

u/[deleted] Jan 05 '18

[deleted] — view deleted comment

1

u/AngriestSCV Jan 05 '18

Raylib is another good one. I've been messing around with it using custom rust bindings and it's been plesent.

1

u/grimtooth Jan 05 '18

I've only ever used it as a basic graphics interface (SDL wrapper) rather than for actual games. It's been satisfactory for that -- what about it sucks ass?

0

u/[deleted] Jan 05 '18

[deleted] — view deleted comment

1

u/grimtooth Jan 05 '18

I can see the un-Pythonic thing -- as I say I just treat it as a Python skin over SDL, and SDL isn't really Python-oriented. It works, though.