Closed jakubg1 closed 2 years ago
Note that UI script support, which was already implemented in the engine, does a lot in terms of custom scripting.
More robust variable definitions will come at some point, with the addition of Expressions. Game scripting as it is right now will soon be deprecated and removed (excluding UI script).
Closing as partially implemented.
Any game could have a set of Lua scripts that would be assigned per game instead of per engine. This could enable extra flexibility for value configuration.
Example: Take this from
<game>/config.json
:Instead, this could be an equivalent function in, let's say,
<game>/scripts/sphereBehaviour.lua
:UI could be scripted in a similar way. However, this would need to have the game event system reevaluated and most of UI system functions should be provided in order to make game UI script files as simple as possible.
This would also allow to configure some tough formulas that are hard to be represented in JSON, such as functions whether a given match should spawn a coin or a powerup.
This feature will be implemented late, probably during the process of writing an engine documentation or even later.