diff --git a/tests/test.lua b/tests/test.lua index 74bf797c49e7edfc27015e5c5ddab3c04d928709..644b54b00df0694b272657ac14e69d92e740169a 100644 --- a/tests/test.lua +++ b/tests/test.lua @@ -24,12 +24,12 @@ draw_text(string.format("dt: %.3f", get_dt()), 10, 50, 20, color.VIOLET) end function get_random_color() - local keys = {} - for k in pairs(color) do - table.insert(keys, k) -- Collect all keys - end - local randomKey = keys[math.random(1, #keys)] -- Select a random key - return color[randomKey] -- Return the corresponding color + local keys = {} + for k in pairs(color) do + table.insert(keys, k) -- Collect all keys + end + local randomKey = keys[math.random(1, #keys)] -- Select a random key + return color[randomKey] -- Return the corresponding color end function test_json() @@ -62,7 +62,7 @@ if button_down(button.PAD_RIGHT) then draw_text("Pad Right", 10, 100, 20, color.VIOLET) end - + if button_down(button.A) then draw_text("A", 150, 10, 20, color.VIOLET) end