{"repo":"jarkonik/bevy_scriptum","free":true,"listed":false,"github":"https://github.com/jarkonik/bevy_scriptum","clone":"git clone https://github.com/jarkonik/bevy_scriptum.git","description":"📜 A plugin for Bevy that allows you to write some of your game or application logic in a scripting language.","language":"Rust","stars":170,"topics":["bevy","bevy-engine","bevy-plugin","game","game-development","gamedev","script","scripting","scripts","plugin"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"bevy scriptum 📜 bevy scriptum is a a plugin for Bevy that allows you to write some of your game or application logic in a scripting language. Supported scripting languages/runtimes language/runtime cargo feature documentation chapter ---------------------------------------------------- ------------- --------------------------------------------------------------- 🌙 LuaJIT lua link 🌾 Rhai rhai link 💎 Ruby(currently only supported on Linux and MacOS) ruby link Documentation book is available here 📖 Full API docs are available at docs.rs 🧑‍💻 bevy scriptum's main advantages include: - low-boilerplate - easy to use - asynchronicity with a promise-based API - flexibility - hot-reloading Scripts are separate files that can be hot-reloaded at runtime. This allows you to quickly iterate on your game or application logic without having to recompile it. All you need to do is register callbacks on your Bevy app like this: And you can call them in your scripts like this: Every callback function that you expose to the scripting language is also a Bevy system, so you can easily query and mutate ECS components and resources just like you would in a regular Bevy system: You can also pass arguments to your callback functions, just like you would in a regular Bevy system - using In structs with tuples: which you can then call in your script like this: Usage Add the following to your Cargo.toml : or execute cargo add bevy scriptum --features lua from your project directory. You can now sta","default_branch":null,"files":null,"tree":[],"storefront":"/r/jarkonik","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jarkonik/bevy_scriptum/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}