makspll/bevy_mod_scripting
关于
Bevy 脚本插件
游戏与模拟器可以做什么
- Update your game mechanics without the need for re-compiling
- Encapsulating game logic in scripts paves way for modders to create custom content easilly
- Scripting game logic/UI in a simpler language broadens development accessibility to non-programmers on your team
- Script management via commands
实测星标增长
- 24小时
- 0
- 7天
- +4
- 15天
- +5
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
[^2]
[^3]
Bevy Scripting
Although Bevy doesn't directly support scripting, efforts are underway to incorporate it. This crate represents an initial attempt to enable scripting within Bevy's existing framework. It's important to note that this is a work in progress and not yet optimized or complete. As Bevy evolves, significant changes to this API are anticipated.
Why Use Scripts?
- Update your game mechanics without the need for re-compiling
- Encapsulating game logic in scripts paves way for modders to create custom content easilly
- Scripting game logic/UI in a simpler language broadens development accessibility to non-programmers on your team
Features
- Script management via commands
- Hot loading
- Support for multiple scripting languages
- Extremely flexible bindings
- Attach bindings to ANY reflect implementing types including foreign types.
- Globals and bindings are set in one place and translated to all supported languages
- Broad set of core Bevy bindings generated for you
- Dynamic systems & components registerable from scripts
- Scripts can run in parallel to existing rust systems or other scripts
- Customizable event driven communication between bevy and scripts (
on_update,on_initetc..) - Documentation generation
Benchmarks
BMS applies continuous benchmarking and the latest benchmark results can be found over at bencher.dev.
The tested scripts themselves are placed in the assets/benchmarks directory, each names itself on its first line (-- #bench interop/field get). Lua benchmarks run on both Lua 5.4 and LuaJIT.
Support
The languages currently supported are as follows:
| Language |
|---|
| Lua |
| Lua51 |
| Lua52 |
| Lua53 |
| Lua54 |
| Luajit |
| Luajit52 |
| Luau |
| Rune |
Documentation
For examples, installation and usage instructions see our shiny new book
Bevy Compatibility
BMS generates code based on each bevy release, which is why we pin the patch version of bevy too.
| bevy_mod_scripting | bevy |
|---|---|
| 0.22.0+ | 0.20.0 |
| 0.21.0+ | 0.19.0 |
| 0.19.0+ | 0.18.0 |
| 0.18.0+ | 0.17.0 |
| 0.14.0+ | 0.16.0 |
| 0.11.1+ | 0.15.3 |
| 0.9.5+ | 0.15.2 |
| 0.9.1+ | 0.15.1 |
| 0.9 | 0.15.0 |
| 0.8 | 0.15.0 |
| 0.7 | 0.14 |
| 0.6 | 0.13.1 |
Supported Platforms
| platform | is supported? |
|---|---|
| Windows | yes |
| Linux | yes |
| MacOS | yes |
| Android | yes, builds are checked in CI, see the book for supported languages |
| iOS | yes, builds are checked in CI, only Lua 5.4, Luau and Rune, see the book |
| WASM | no, see this issue |
[^2]: the coverage does not include generated bindings.
[^3]: The crate strictly enforces no unwrap, expect, panic or todo's via clippy lints.
探索相关项目
加载中…