- Icon resource for Windows added

- Zoom and fullscreen controlled from Lua
- Basic gamepad support
This commit is contained in:
2023-01-20 19:14:59 +01:00
parent 0b2f30bac8
commit db9ce7898b
13 changed files with 75 additions and 65 deletions

View File

@@ -1,3 +1,15 @@
keyUp = KEY_UP
keyDown = KEY_DOWN
keyLeft = KEY_LEFT
keyRight = KEY_RIGHT
keyShoot = KEY_SPACE
btnUp = BTN_UP
btnDown = BTN_DOWN
btnLeft = BTN_LEFT
btnRigth = BTN_RIGHT
btnShoot = BTN_A
function _init()
tiles=loadsurf("tiles.gif")
setsource(tiles)
@@ -29,4 +41,14 @@ function _init()
--final_init()
end
function _update() end
function _update()
if btnp(KEY_F2) then
local val = zoom() + 2
if val >= 10 then val = 2 end
zoom(val)
elseif btnp(KEY_F3) then
fullscreen(not fullscreen())
end
if (game_update) game_update() end
end