Python support in gdevelop?

Hi, so is it possible for python support in gdevelop?
why i want it
Python is more widley used than javascript and considered eaiser to learn than js and more focused on game development. Javascript is more focused on web development and websites not games.

2 Likes

Not natively/potentially not at all.

The renderer and engine itself is Javascript. You’d have to have someone build some sort of interpreter that could also then interpret into GDJS specifically.

That said, I’m confused by the rest of your post as it seems to be misinformed or have some sort of misunderstanding?

So this appears to be not true for many years, and looking at the trajectory this is unlikely to be true for game dev potentially ever unless something changes drastically in the market.

As far as I can find, Python’s market share decreased pretty heavily a while back around 2020, and hasn’t had much gain/share has reduced year over year. It seems like the only thing Python still leads in are people first learning a programming language, and that seems to reduce year by year as well. I could be missing something, but I can’t find anything that shows otherwise, heck even C# and Lua have had gains (percentage increase) compared to Python.

This is seems to be inaccurate overall. While most programming languages can be used for anything, Python is generally used for machine learning and data analysis, and barely a blip in the game dev space. It’s definitely used more than base Java, though (which is different from and mostly unrelated to Javascript. Maybe that’s where the confusion is coming in? Or maybe places are trying to list JS and Typescript separately when talking about game dev, which would heavily skew the numbers down?)

Edit: It’s late and I just re-read my post, and I want to be abundantly clear: I originally found your statements interesting and did some research to see where Python stood, and then found the above data which seemed to contradict it pretty heavily. The above is meant as informative only/clarifying for you, not meant to call you out or anything. Hope it didn’t come off that way!

1 Like

Technically it could be possible with something like PyScript:

It is possible to call JS within PyScript and create a wrapper around Pixi.js and Three.js and potentially gdjs this way.

A high level, beginner friendly scripting language is something GDevelop could potentially benefit from and PyScript could be one way to go about it.

However it would be a lot of work. If the developers would ever considering to implement any kind of high level scripting language, I doubt they would go this direction.

4 Likes

Yeah. That’d be the interpreter I bit I mentioned.

It’d be a tremendous lift and have to constantly be maintained whenever GDjs or either if the 2D/3D renderers have api changes, and still wouldn’t be native to the engine.

I’d think we’d see the devs implement something like Lua or Haxe before they use something like python for this.

(Although I’d bet they don’t implement alternative languages at all as it has been repeatedly stated by the team that the event system is the only first class language in the engine, and JS is just there for advanced devs who already know the language to extend the engine, not really focused on game logic)

2 Likes