D
D
Dexelio2019-12-29 20:39:08
Python
Dexelio, 2019-12-29 20:39:08

JavaScript or Python - which is easier to write a game in?

Good afternoon!
I would like to know in which of these languages ​​you can write a more functional and high-quality game?
I heard that web games are written in JS, but using Node.js you can write client and mobile games.
On Python, I heard only about the PC, I don’t hear about the web and mobile.
I understand that there is no way to write large-scale projects in them anyway, but for now I just have a question - which of these languages ​​will be better? Or maybe they are both about the same in this regard?
Since the programs on the PC, that of JS, that of Python are the same in functionality, only Python is inferior on the web / mobile phone.
*Thanks!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
dollar, 2020-12-30
@Dexelio

Both options are the same.
Because these are, as it were, not quite game languages, despite the fact that if you wish, you can still write a game in any of them.
Two popular good engines come to mind:
So C# is the best choice.
You can also consider Lua as an option, it is ideal for describing game logic and easy to learn. But engines with Lua support are still inferior to the above. It's easier to take the same Unity and screw MoonSharp to it , for example, to be able to use Lua. But only if it is really needed - for example, to support modifications.

P
profesor08, 2019-12-29
@profesor08

It's easier on what you know better.

S
Sergey Gornostaev, 2019-12-29
@sergey-gornostaev

In C++ or C#.

K
Karpion, 2020-01-10
@Karpion

JS works in browsers. Other languages ​​need to be cunningly fastened. So a browser game - in JS or in languages ​​that are easy to compile to JS.
However, browsers have WebAssembly - different languages ​​​​are compiled into it ...
If the game is not browser-based, then you need to decide for which platform. And here it is better to choose a language for which there is a good optimizing compiler and a convenient development environment. Well, look at the available engines. And take the language you know.
And you can also take a game like WarCraft'3 (by the way, a new version with high resolution has recently been released) and make a mission (or a series of missions) there. Those. the engine and a decent number of models are already there, it remains to draw a map, arrange units and write roles for them (scripts that control units and / or inanimate objects such as a bridge that appears under certain conditions).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question