Phaser: Support Lua scripting

Created on 14 Feb 2018  路  7Comments  路  Source: photonstorm/phaser

Phaser could support lua scripting via the fengari project.

There are a few subsets of functionality that would be good:

  • Use lua as main development language (this should be easy/can be done today; just need some support + examples in docs)
  • Support lua for running untrusted code
    Fengari allows distinct lua states: this means that in a game, entities could send code to each other that gets to run in a sandbox

Most helpful comment

I'm going to close this issue. Not because I don't agree with the idea, but just because there is no way we're going to implement it ourselves, so if the wider community want to do it then please go ahead - and we'll feature it in the newsletter and on the site if you do, we just won't put any of our resources into it I'm afraid.

All 7 comments

Please no. JavaScript is already a scripting language. Do we really want layers of scripting languages one over another?

@PythonFanboy Why do we use TypeScript then?

@ZaDarkSide type checking and pseudo OO paradigm?

So I guess every scripting language has it's use then. Anyway my question was kind of rhetorical for @PythonFanboy who apparently doesn't likes LUA for some reason.

It could be implemented in (3rd-party) plugin.
Here is another useful feature :
Lua in the browser means you can use coroutines to write beautiful asynchronous code

I'm going to close this issue. Not because I don't agree with the idea, but just because there is no way we're going to implement it ourselves, so if the wider community want to do it then please go ahead - and we'll feature it in the newsletter and on the site if you do, we just won't put any of our resources into it I'm afraid.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Secretmapper picture Secretmapper  路  3Comments

sercand picture sercand  路  3Comments

JoeBerkley picture JoeBerkley  路  3Comments

MarkSky picture MarkSky  路  3Comments

cncolder picture cncolder  路  4Comments