r/learnpython • • Sep 05 '24

Is python recommended for coding games?

Because I think it’s only good for coding like websites or some shit if it is recommended for coding games, sign me up where do I start because I’m starting out coding and programming

0 Upvotes

65 comments sorted by

View all comments

2

u/oclafloptson Sep 05 '24

You might be interested in Ursina if you're familiar with Python and looking to play around with some light game dev. It handles both 2d and 3d pretty well and is relatively easy to use. You can spin up a simple Minecraft clone in only 30 lines of code. The docs are severely lacking, though, so if you're really new maybe check it out later after having a better grasp

I find the Flet framework to be really good at building card and board style games where physics aren't required. I've built card games, mancala, minesweeper type games and even an ant farm sim all with Flet

Not every game has to be CoD lol but yeah they're right if CoD is your goal there are better options

1

u/No_Molasses_7224 Sep 05 '24

I’m not familiar with python whatsoever. I am completely new. please don’t shame me for being a new person to this kind of stuff that isn’t scratch

2

u/oclafloptson Sep 05 '24

No shame intended. We all started somewhere. Only pointing out that the Ursina docs don't do a very good job of explaining as they assume implied knowledge. It is a really fun engine to work with though if you prefer Python

1

u/No_Molasses_7224 Sep 05 '24

I’ve heard python is pretty good probably better than JavaScript, but I don’t know I’m new to coding languages

1

u/oclafloptson Sep 05 '24

Python and JavaScript are extremely similar. One is more commonly used for web dev while the other more commonly used for data science. Both are ok options for game dev. But...

Like others have pointed out, if game dev is your goal you might be better off starting with a popular engine. Unity, GoDot etc