I am making a game similar to doodle jump and I have the code here but how do I know if it works how do I test it?
local function onTilt( event )
physics.setGravity( 10 * event.xGravity, -10 * event.yGravity )
end
Runtime:addEventListener( “accelerometer”, onTilt )