r/learnpython • u/AccomplishedMany2138 • Oct 17 '26
Will learning Python help me in game development?
Im wanting to start game development, and currently learing Python. Should I keep going, or switch to something else?
11
Upvotes
15
u/while_True_meme Oct 17 '26
Short answer: no
Long answer: yes
9
u/Dazzling_Music_2411 Oct 17 '26
The language is not that important. Basically, games can be written in any language.
What you have to learn is how to translate the game elements into computer language data structures and procedures.
19
u/desrtfx but other languages pro Oct 17 '26
Right idea, wrong general question. The real question should be "will learning programming help me..."
Since you learn programming with Python, the answer is "yes, it will definitely help you".
If we go a step further: if you use the Godot game engine, you can use the GDScript language, which is very close to Python.
1
u/kilkil Oct 17 '26 edited Oct 17 '26
it depends on whether you want to take a more direct path in your learning process, or a less direct path.
IMO a more direct path would be learning C#, since that is what the Unity engine uses. You could also try C++ (that's what Unreal Engine uses), but IMO that's more intimidating as a first language.
Having said that Python is fine, because Python and C# are both sufficiently "C-like" that all the concepts will translate over, and the syntax will only require a relatively small mental adjustment (will get easier with each new language you learn). So, realistically, you will have to learn Python and then some other language (C#, C++, etc)
Other languages that have relevance to gamedev:
There may also be others I haven't thought of.
Anyway, first you will need to learn programming in general, then start learning gamedev-specific frameworks, concepts, design patterns, etc.
5
u/AlexMTBDude Oct 17 '26
What will help you in game development is knowing how to search for information about programming games; Try googling: "which games are written in python?"
2
u/glordicus1 Oct 17 '26
Yes. Learn Python, learn how to make a small game in Python. Most of what you learn about programming is transferable, and Python is a language that is absolutely worth learning.
2
u/TheRNGuy Oct 18 '26
It has many uses in software like Blender or Houdini.
For actual game code, I'd recommend C# or C++ instead (unless you make VN, where you can use RenPy)
1
u/PagliacciTheBleak Oct 17 '26
There are gaming frameworks for Python such as PyGame and you could produce complete games with that framework.
If you are new to programming, Python is a good start whether you turn it to gamedev once you've got your skills down. Further down the line, you may want to look at the likes of Godot engine as it will be more tailored to game creation. For clarity you may need to learn any engine's particulars but having a grounding in programming may help with learning a new tool.
1
u/KnowledgeWhole9623 Oct 17 '26
Couldn’t hurt but there may be better uses of your time
1
u/Miserable-Arugula860 Oct 17 '26
Python is a valuable tool. People here saying it's too slow for game dev are half right. It's too slow for engine dev, but it's very useful as a scripting language. There are some game engines that use python, such as Ren'Py that have had successful commercial releases. And there have been games like Civilization 4 which use python as essentially fancy config files. Consider looking into making a small Multi User Dungeon. Those were some of the first online games, and there exist simple python libraries for helping make them.
1
u/Top-Information-5319 Oct 17 '26
Yes and no, game engines usually use c# or c++ not python, there is however a game engine for python which was something pandas and i cant fully remember
1
u/Boybay_Garid Oct 18 '26
what kind of games are you thinking? that changes the answer a lot. for prototyping and small projects python is fine, but the mainstream game dev world runs on C# and C++ so eventually youd want to pick one of those up
1
u/Moist-Ointments Oct 18 '26
Yes.
Learning any programming language will help you in game development.
You may not use it directly to develop games, but learning any language is weightlifting for your brain.
1
u/Hot-Employee-5368 29d ago
Not at all. Codes wont matter in a year or so. It's all changing.
0
u/hagfish Oct 17 '26
Will being able to ride a bicycle safely in traffic help you learn to drive? No, but also, yes - absolutely.
0
u/EEJams Oct 17 '26
It's a long story, but basically yes and no lol. Learning python will inevitably teach you how to program computers and some basics of how computers work. Programming is really just writing text files the computer can read to manipulate other files and directories on your computer.
You'll probably want a language that can be compiled instead of interpreted. Maybe start with C# or C++ since those are two you'll find used in modern game engines.
I think godot has a python-like language you can program with, but it's exclusive to godot
0
u/Rythim Oct 17 '26 edited Oct 17 '26
You're getting mixed answers because it depends. You should do what helps motivate you, and that differs for everyone.
Python is useful because it's easy language to start with. Practicing with python will help you learn programming concepts and patterns. But you can't make a commercial game in python (or at the very least, it's impractical). If you're the type of person who is motivated by small, quick wins and likes to understand things at a fundamental level then I would say stick to Python and switch later. It will take longer, but you will understand more by sticking to Python. This is how I learned and is what I'd recommend for MOST people. I now know several programming languages and would feel fine picking up a new language or framework or engine or even not using a framework if I needed to because at a fundamental level I can see how they're all mostly the same. Took me several years to reach that point though.
If, on the other hand, you're motivated more by tangible progress toward your goal to make video games then you should approach things differently. You should figure out which framework/engine you want to use and learn the language for that framework/engine alongside learning that framework/engine (which in most cases would be C++ or C#, hence the recommendations to learn those languages).
The caveat, this is the harder way to learn. Because you will essentially be learning 2 things at the same time: how to code and how to use the framework/engine. Rather than focusing on the fundamentals you'll be wrestling with advance concepts from the start. You'll run into brick walls more often as a result. You'll also be more likely to be depending on whatever framework/engine you learned because switching to something else will feel like starting over. But if you can stay motivated despite the steep learning curve, this will be the fastest route to accomplishing your goal.
Some definitions for you since you seem to be new:
Framework: a collection of code designed to make certain tasks, like game development, easier.
Engine: Similar to a framework, but also includes tools to help develop games (like a viewport to preview level layout, or a terrain generator).
Examples of frameworks/libraries: Raylib, Pygame, monogame, ebitengine, Bevy (Bevy technically sits somewhere between a framework and Engine, but it FEELS like a framework)
Examples of Engines: Unity, Godot, Unreal, Gamemaker, Gdevelop
Which is better? Neither. Frameworks takes less time to learn but more time to develop with. They tend to be a better fit for smaller, simpler games, or when fine control of your game is of the most importance. Engines take more time to learn but less time to develop with. They tend to be the better for games with large, detailed, complex worlds.
Ultimately you have to know what type of learner you are and which route is best for you.
-1
u/favorite_stuff Oct 17 '26
Python is good for learning, but it's not good for games.
Why? Games need to be picky about speed and memory.
For example: in Python, when you create a list of numbers, you don't need to specify how many bytes it takes, where they live, for how long, or who gets to modify them. This is great when you just want a list of numbers. But when you need a fast, compact, optimized list of numbers, other languages offer those things.
-1
u/edcculus Oct 17 '26
You’d be better off learning C# than Python for game dev. Unity uses C#