moonsharp
lua-cmake
moonsharp | lua-cmake | |
---|---|---|
4 | 1 | |
1,361 | 26 | |
0.8% | - | |
0.0 | 10.0 | |
5 months ago | over 3 years ago | |
C# | CMake | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
moonsharp
-
MoonSharp or How we combined JSON and LUA for game ability management
Some of you may be familiar with MoonSharp LUA interpreter for C#, often use in Unity engine to add scripting support to your game. That's what we took as a base for writing the code for abilities. Each ability can subscribe to different events such as whenever a card takes damage, is placed on the field or ability is used manually on some specific targets. Besides having event handlers we needed a way to specify some metadata like mana cost of abilities, cooldown, icon, etc. and in the first iteration of the system we had a pair of JSON metadata file and LUA code file.
-
Edit script on running game?
Rather than making your own language, just add Lua to your project. Moonsharp is pretty good with Unity...
- Can I change unity coding language?
- Lua: Good, Bad, and Ugly Parts
lua-cmake
-
Lua: Good, Bad, and Ugly Parts
Lua is a very nice piece of technology. Its source code is pretty easy to get into, the documentation is complete.
It has its quirks yes, but if I need to add scripting to a software, I'd consider Lua before considering writing a DSL, simply because you can pretty much embed Lua's source in your C/C++ software as a static library[0].
The stack-based approach makes it so easy to interact with C/C++, and I've been looking at the Rust bindings[1] recently out of curiosity, looks promising.
[0] - https://github.com/lubgr/lua-cmake
What are some alternatives?
luau - A fast, small, safe, gradually typed embeddable scripting language derived from Lua
fengari - 🌙 φεγγάρι - The Lua VM written in JS ES6 for Node and the browser
atom-tabletopsimulator-lua - Tabletop Simulator scripting package for Atom.
fungus - An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
mlua
IntelliJ-Luanalysis - Type-safe Lua IDE — IntelliJ IDEA plugin
piccolo - An experimental stackless Lua VM implemented in pure Rust
gopher-lua - GopherLua: VM and compiler for Lua in Go
lua-lockbox - A collection of cryptographic primitives written in pure Lua
DistorteD - Ruby multimedia toolkit with deep Jekyll integration 🧪
rlua - High level Lua bindings to Rust