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
local my_state = {
	iterations = 0,
}

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

	if my_state.iterations >= 10 then
		print("calling quit");
		quit();
	end
end