r/learnpython • • Mar 17 '26

I want to make a game in Python.

Hi,

What do I need to know and what should I use to make a game in Python? I previously used pygame. But I want something different.

Initially I thought about doing it in C or C#, but I really need to learn Python.

Can someone help me?

Thx.

0 Upvotes

19 comments sorted by

13

u/FVMF1984 Mar 17 '26

What is your main goal: 1. making a game or 2. doing something in Python.

If 1, then there are a lot of options. Do you enjoy the process of making a game, do you want to publish said game to make money etcetera would determine next steps.

If 2, then pygame would be the obvious route. But Python is not really a good language to make games in general, although you can make games with it. Why are you looking for something different than pygame? Those reasons could determine next steps.

4

u/[deleted] Mar 17 '26

To be honest, I recently fell behind at 42 (programming school). And I intend to try again, as the course will be mostly in Python, I wanted to develop my knowledge. I also love games and would really like to see one of my projects completed, so wouldn't it be better to combine the two?

1

u/monster2018 Mar 18 '26

Definitely something like pygame would be a great option. Please understand there is ABSOLUTELY NOTHING wrong with making something just to make it. Even if that were literally the case, but it isn’t, because you would be learning. So it’s extra ok. In fact, making things just for the sake of making them (instead of because you want a polished end-user software product to exist in the world) is literally necessary to get past the beginner stage.

I think in your situation making a game in pygame couldn’t possibly make more sense (to be 100% clear, im saying it DOES make sense for you to make a game in pygame).

1

u/[deleted] Mar 18 '26

Thx, I will use pygame.

2

u/Kriss3d Mar 17 '26

You could start with something more simple.
Start with a text adventure that lets you make choices. You can add on to that by allowing you to collect items depending on choices the player makes.
Take inputs like name, gender or something else relevant.

For example back in the days before computers became mainstream, there were books you could borrow at the libary. Think Dungeons and Dragons roleplay but for one.
You make choices by going to certain pages, you roll a dice for stats and play that way. The stories were actually not bad.

You could recreate that but in python. And of course with built in dice rolls and a way to see your stats and items collected.

Its not too complicated and a great way to break down tasks and functions.
Add on to it with savefiles if you want.

2

u/[deleted] Mar 17 '26

Thanks, I think I can start like this and then delve deeper, I'll think about what to do because in the end I really want to finish the game.

4

u/Desposyni Mar 17 '26

I don't know much of anything, but the Godot game engine can use GDScript, which looks python-like.

1

u/Marshmlol Mar 18 '26

I made a response to a similar post.

Refer to my comment

1

u/[deleted] Mar 18 '26

Thx

1

u/JamzTyson Mar 17 '26

I previously used pygame. But I want something different.

"Different" in what way?

Depending on the kind of game, you might not need to use any framework at all.

1

u/[deleted] Mar 17 '26

Good question! I don’t know... But do you think I can do a a hole game in pygame. What should I do? There are so many options...

So i was thinking and decide that It will be on python, next step, pygame?pyglet?pygame-ce?

Please give me a advice,

Thx.

(Sorry for my english)

2

u/JamzTyson Mar 17 '26

Making Games with Python & Pygame is a book of small game projects by Al Sweigart (the online version is free). I'd suggest that you have a go at making a few of them as a fun introduction to PyGame.

Al Sweigart uses PyGame rather than PyGame-CE because the latter did not exist when he wrote the book. Both versions of PyGame should still be compatible with the code in that book as much of the syntax has remained the same for years.

1

u/[deleted] Mar 17 '26

Thx so much!

2

u/uberdavis Mar 17 '26

I mean, if you’re put off by learning C++ (ie Unreal), go for C# instead. It’s a lot more manageable. I became a better Python programmer after learning C# and you get to build things in Unity which is awesome.

0

u/[deleted] Mar 17 '26

[deleted]

4

u/[deleted] Mar 17 '26 edited Mar 17 '26

Thank you so much for your help. The game type is an RPG Maker game like Omori, Mad Father. (But more simple)

8

u/Riegel_Haribo Mar 17 '26

Warning: You're talking to someone using AI. Likely Google, from the patterns.

1

u/[deleted] Mar 17 '26

Thx

7

u/JamzTyson Mar 17 '26

PyGame-CE is "modern".

u/Cicada-One's reply looks to be AI generated.

0

u/[deleted] Mar 17 '26

[deleted]

3

u/[deleted] Mar 17 '26

Unfortunately, I got absorbed in the conversation, so I didn't get to the "so_long" part. :C