Zuletzt aktiv 1734158250

Änderung db84f89156b383a7be092f136da3f18d368c50e0

state.lua Orginalformat Playground
1-- circle game --
2machine.state = {
3 ["last_key_pressed"] = "",
4 ["event_args"] = {},
5 ["dt"] = 0,
6 ["default_font"] = love.graphics.getFont(),
7 ["circles"] = {},
8 ["large_font"] = love.graphics.newFont(64),
9}
10
11-- zombie game --
12machine.state = {
13 ["player"] = {x = 400, y = 300, r = 10, health = 5},
14 ["bullets"] = {},
15 ["event_args"] = {},
16 ["spawn_timer"] = { time_left = 1, duration = 1 },
17 ["dt"] = 0,
18 ["zombies"] = {},
19}
20
21-- merged state --
22machine.state = {
23 ["circles"] = {},
24 ["last_key_pressed"] = "",
25 ["player"] = {x = 400, y = 300, r = 10, health = 5},
26 ["event_args"] = {},
27 ["bullets"] = {},
28 ["dt"] = 0,
29 ["zombies"] = {},
30 ["spawn_timer"] = { time_left = 1, duration = 1 },
31 ["default_font"] = love.graphics.getFont(),
32 ["large_font"] = love.graphics.newFont(64),
33}