Skip to content

Instantly share code, notes, and snippets.

@warmist
Created November 29, 2012 09:57
Show Gist options
  • Save warmist/4167912 to your computer and use it in GitHub Desktop.
Save warmist/4167912 to your computer and use it in GitHub Desktop.
spam turn passes.
--passes turns constantly
gui=require ("gui")
realtime=defclass(realtime,gui.Screen)
function realtime:onRenderBody(dc)
self:sendInputToParent("A_WAIT")
self:renderParent()
end
function realtime:onIdle()
self._native.parent:logic()
end
function realtime:onInput(keys)
if keys.LEAVESCREEN then
self:dismiss()
else
self:sendInputToParent(keys)
end
end
realtime():show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment