bevy_scriptum 0.11.0

Plugin for Bevy engine that allows you to write some of your game or application logic in a scripting language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
let my_state = #{
    iterations: 0,
};

fn on_update() {
    my_state.iterations += 1;
    print("on_update called " + my_state.iterations + " times");

    if (my_state.iterations >= 10) {
        print("calling quit");
        quit();
    }
}