A
A
Azari2018-08-09 21:10:10
Python
Azari, 2018-08-09 21:10:10

Does it make sense to write games like terraria, crypt of the necrodancer, etc. in python (pygame)?

Good day. One fine day, the idea to write a game came up. The question is, is the python + pygame bundle suitable for working on a project similar to the above (in terms of complexity)? It is also possible to write in c++ and sfml.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Alexey Yeletsky, 2018-08-10
@eidanbox

terraria,crypt of the necrodancer

They are technically very different games. Crypt of the necrodancer can be done completely in python.
There may be performance issues with Terraria due to mechanics (complex world model, lots of calculations). It may be necessary to rewrite the logic on something more productive (on the pluses, for example). But a working prototype in pure python can be made.
Here, ready-made engines are correctly advised, Python is not very good with them. You can try Godot, it allows you to use Python to describe the logic. Or Kivy - the engine is not a game engine, but it will do for some games.
Python is usually used as a high-level logic language. And for graphics, networking and other things, they use ready-made engines on something faster.

W
Warlodya, 2018-08-10
@Warlodya

If the goal is to do it for yourself, for your pleasure and experience, then use everything that your soul lies in. But if we talk about creating a real game that will be released, then the simple answer is no. You will have to write what has already been written in other languages ​​for a long time without the support of a larger community and you will simply run out of resources or the desire to make a game.
So, unless absolutely necessary, it is better to follow the beaten path and not create problems for yourself.
You can look towards the godot engine to create a 2d game with c++.

D
dollar, 2018-08-10
@dollar

Learning a new language shouldn't be a problem for a programmer.
Look, first of all, at the capabilities of the engine and the format of working with it.
Personally, my choice fell on the Lua language, because I need the ability to support modifications to the game. This means that the game must be written in Lua (or C++, but it's difficult). In addition, Lua is an elegant and convenient language, and quite fast, much like JavaScript.
Further, there are several engines that support Lua. All have their pros and cons, their own history. But if you choose something, you will have to study.
PS I would like to play Terraria 2.

D
DTX, 2018-08-09
@DirecTwiX

Unity

N
Nick V, 2018-08-10
@half-life

Creating a 2D Python Game with the Arcade Library

R
Ruslan Ruslanov, 2018-08-10
@dasauser

Yes, it has.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question