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ISVNIP2A3LOTLCJZEAMG5A2RVUUFFFQXQLTQC
2P7VQB7QZQCOI5BHR4DTFZJC43PU4C24CGTJGYJSAWKVE2FTSGVAC
your app's variables here rather than in `on.draw`. Provides in `dt` the
time since the previous call to `on.update`, which can be useful for things
=======
button. Provides the same arguments as `on.mouse_press()` above.
=======
* `App.mousereleased(x,y, mouse_button)` -- called when you release a mouse
=======
function App.run_test(test, record_error_fn)
local globals = App.shallow_copy_all_globals()
App = App_for_tests
local saved_font = love.graphics.getFont()
love.graphics.setFont(Love_snapshot.initial_font)
App.initialize_for_test()
xpcall(test, function(err) record_error_fn('', err) end)
love.graphics.setFont(saved_font)
-- restore all global state except Test_errors
local test_errors = Test_errors
App.restore_all_globals(globals)
Test_errors = test_errors
end
end
function App.run_tests(record_error_fn)
local globals = App.shallow_copy_all_globals()
App = App_for_tests
local saved_font = love.graphics.getFont()
love.graphics.setFont(Love_snapshot.initial_font)
--? print('=== '..name)
xpcall(_G[name], function(err) record_error_fn(name, err) end)
love.graphics.setFont(saved_font)
-- restore all global state except Test_errors
local test_errors = Test_errors
App.restore_all_globals(globals)
Test_errors = test_errors
function App.run_test(test, record_error_fn)
local globals = App.shallow_copy_all_globals()
App = App_for_tests
local saved_font = love.graphics.getFont()
love.graphics.setFont(Love_snapshot.initial_font)
App.initialize_for_test()
xpcall(test, function(err) record_error_fn('', err) end)
love.graphics.setFont(saved_font)
-- restore all global state except Test_errors
local test_errors = Test_errors
App.restore_all_globals(globals)
Test_errors = test_errors
function colortable(app_color)
return {app_color.r, app_color.g, app_color.b, app_color.a}