DEV Community

Cover image for Is it possible to make games in python?
narendra8989
narendra8989

Posted on

Is it possible to make games in python?

Yes, Definitely possible!

Python has been used in a ton of commercial products. It's been used in tons of games, and lots of art packages and other programs as an embedded scripting language.

Check out Panda3d if you want to see a good engine for it. There is also PyGame, and Blender's built in game engine if you just want to prototype something quickly.

Python has actually been used in a number of big commercial games, usually as a scripting language on top of an engine implemented in a lower-level language -- a good example of this is thePanda3d engine, which is written in C++ but can be programmed using Python, and was used for a couple of Disney MMOs amongst other projects.

If you're happy to use Python, then yes, you should absolutely proceed with it, and yes, you can make a professional quality commercial game if you put in the time and effort to do so.

There's Pygame: A game framework for the Python language. If you need to know the basics for game development (engine, flow, ui, mathematics), this framework with all its examples will help you a lot. This won't take you by the hand and guide you step by step through game-development, but if you need a reference and a decent framework, than this is a good start.

There's also PyOpenGL: The official Python wrapper for OpenGL programming. Again with lots of programming examples in the field and tons of code snippets on how to use 3d models and the likes. Can be used together with PyGame.

But you should start by familiarizing yourself with some 3D basics. Look around at theGameDev.net Game Development Community site. Learn a thing or two about matrices (and perhaps quaternions). There are lots of beginners tutorials and references available to get you started.

If you're looking for alternatives you might consider Unity, which can be programmed with C#, UnityScript (similar to JavaScript) or Boo (similar to Python), or even something like Construct 2 or Game Maker

Meet the Experts : https://nareshit.com/python-online-training/

Top comments (0)