- [FIX] Non-turbo mode was buggy

This commit is contained in:
2023-07-28 09:47:11 +02:00
parent 9b99aa23cf
commit 88237804f7
2 changed files with 15 additions and 12 deletions

View File

@@ -5,21 +5,13 @@ function _init()
keyRight = tonumber(getconf("keyright")) or KEY_RIGHT
keyLeft = tonumber(getconf("keyleft")) or KEY_LEFT
_update=normal_update
turbo(false)
end
function _update()
end
function normal_update()
view()
cls(20)
view(10,10,140,100)
cls(3)
prnt("HOLA",0,0)
origin(70,50)
prnt("ORIGIN",0,0)
prnt(text,x,10)
if btnp(keyRight) then x=x+1 end
if btnp(keyLeft) then x=x-1 end
if btnp(KEY_SPACE) then
@@ -38,6 +30,15 @@ function normal_update()
end
if x>160 then x=-strlen(text)*4 end
view()
cls(20)
view(10,10,140,100)
cls(3)
prnt("HOLA",0,0)
origin(70,50)
prnt("ORIGIN",0,0)
prnt(text,x,10)
end
redefinekeys = {