I.e., so we can run tests on our games under something like Docker. It'd also be cool if we could specify a --test-file
option to test. That way we could do stuff like
import "CoreLibs/testing/input" -- can emulate input
import "CoreLibs/testing/ram" -- view game variables
import "CoreLibs/testing/collision" -- view collision and whatnot
import "CoreLibs/testing/display" -- view sprites, images, and whatever is on the screen
and then we could have something like
playdate.testing.pressButton(playdate.kButtonA)
function playdate.testing.onCollision(sprite1, sprite2)
-- do something on collision
end
This way we could build something similar to Punch-Out Wii's soak test