Skip to content
paul59 edited this page Jan 2, 2020 · 9 revisions

reset

reset

Description:

Resets the cartridge and returns to its initial state. See the similar exit function which return to the command prompt.

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
Clone this wiki locally