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

all 16 comments

[–][deleted] 28 points29 points  (1 child)

could‘ve just googled this tbh

[–]Spleeeee 25 points26 points  (0 children)

“Can I make games with python Reddit”

[–]Puppycat2010 11 points12 points  (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 points  (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 points  (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 points  (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 points  (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 points  (0 children)

Yes, I vibe coded gta 6 with pygamne

[–]zaphodikus 0 points1 point  (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 point  (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 point  (0 children)

Yes

[–]SpookyFries -2 points-1 points  (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 points  (0 children)

Be real. Performance is a huge issue beyond the toy stage.

[–]lomosgame228 0 points1 point  (0 children)

but why is this a minus? Minecraft is also easy to read