Skip to content
StinkerB06 edited this page Apr 14, 2018 · 1 revision

reset

reset

Description:

Reset cartridge execution and retrieve to initial state. It is very similar to the exit function.

Example:

-- title:  reset API Command Demo (Lua)
-- author: StinkerB06
t=0
function TIC()
	if btn(4) then reset() end
	cls()
	print("Press Z to reset counter.",1,1)
	print(t,1,8)
	t=t+1
end
You can’t perform that action at this time.