17 releases (8 breaking)

new 0.9.0-alpha.2 Jan 5, 2025
0.8.0 Dec 3, 2024
0.8.0-alpha.1 Nov 10, 2024
0.6.0 Apr 4, 2024
0.1.2 Oct 8, 2022

#475 in Game dev

Download history 13/week @ 2024-09-18 27/week @ 2024-09-25 12/week @ 2024-10-02 4/week @ 2024-10-09 6/week @ 2024-10-16 1/week @ 2024-10-23 210/week @ 2024-10-30 256/week @ 2024-11-06 24/week @ 2024-11-13 17/week @ 2024-11-20 110/week @ 2024-11-27 181/week @ 2024-12-04 27/week @ 2024-12-11 11/week @ 2024-12-18 6/week @ 2024-12-25 193/week @ 2025-01-01

241 downloads per month

MIT/Apache

1.5MB
35K SLoC

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
  • All script bindings managed in one place (ScriptDynamicFunctionRegistry)
  • Customizable event driven communication between bevy and scripts (on_update, on_init etc..)
  • Automatically generated bevy bindings
  • Documentation generation temporarilly on hold

Support

The languages currently supported are as follows:

Language
Lua
Lua51
Lua52
Lua53
Lua54
Luajit
Luajit52
Luau
Rhai
Rune

Documentation

For examples, installation and usage instructions see our shiny new book

Dependencies

~54–89MB
~1.5M SLoC