Couldn't sleep, had an idea churning around in my head, so I sketched out an idea that has been bounding around in my head for a long while.
-
Couldn't sleep, had an idea churning around in my head, so I sketched out an idea that has been bounding around in my head for a long while.
So here's an MVP of scripting a Rust program using Lua where the Rust-defined module has documentation and auto-completion exposed to the Lua LSP through a generated definitions file.
Ultimately I'd love to make a fairly open ended "game engine" that caters highly specifically. Like RPGMaker but significantly less functionality.
I'm picturing a Pathfinder 2e inspired CRPG engine that supports custom campaigns being loaded from lua-defined mods and DLC. And I myself have a few stories I'd love to tell that work great for that particular framework. Especially since I can't convince any of my local friends to play pathfinder with me
Anyway, this isn't particular to making games, so if anyone out there wants to make something in rust with a robust API for lua scripting, enjoy this delicious example!
GitHub - QueenOfSquiggles/rust-lua-scripted-mvp: An MVP of using Lua to script logic handled in Rust with typed definition files providing documentation information to Lua LSP
An MVP of using Lua to script logic handled in Rust with typed definition files providing documentation information to Lua LSP - QueenOfSquiggles/rust-lua-scripted-mvp
GitHub (github.com)
-