This commit is contained in:
2025-02-18 14:00:42 +01:00
parent 99a29cf2e0
commit 6c9221cd20
5 changed files with 776 additions and 48 deletions

View File

@@ -21,6 +21,7 @@ function mini.init()
s = surface.load("copy.gif")
--draw.source(s)
system.setBeat(4)
end
function mini.update()
@@ -42,26 +43,26 @@ function mini.update()
end
function normal_update()
if btnp(keyRight) then x=x+1 end
if btnp(keyLeft) then x=x-1 end
if btnp(KEY_SPACE) then
if keyboard.keyPressed(key.RIGHT) then x=x+1 end
if keyboard.keyPressed(key.LEFT) then x=x-1 end
if keyboard.keyPressed(key.SPACE) then
redefinekeys.init()
end
if btnp(KEY_ESCAPE) then
quit()
if keyboard.keyPressed(key.ESCAPE) then
system.quit()
end
if btnp(KEY_F2) or mbtnp(1) then
local val = zoom() + 2
if keyboard.keyPressed(key.F2) or mouse.buttonPressed(1) then
local val = window.getZoom() + 2
if val >= 10 then val = 2 end
zoom(val)
elseif btnp(KEY_F3) then
fullscreen(not fullscreen())
window.setZoom(val)
elseif keyboard.keyPressed(key.F3) then
window.setFullscreen(not window.getFullscreen())
end
if x>160 then x=-strlen(text)*4 end
//if x>160 then x=-strlen(text)*4 end
clip()
viewport.setClippingclip()
origin(0,0)
cls(20)
clip(10,10,140,100)