- Icon resource for Windows added
- Zoom and fullscreen controlled from Lua - Basic gamepad support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user