- 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

@@ -144,8 +144,8 @@ function start_scene(scene,offset)
playmus(scenes.current_scene[scenes.dnum].musica)
end
if offset then scenes.offset=offset end
old_update=_update
_update=update_scene
old_update=game_update
game_update=update_scene
end
function playtext(snd)
@@ -254,7 +254,7 @@ function update_scene()
final_init()
fade.fadeoutin()
else
_update=old_update
game_update=old_update
end
else
scenes.dnum=scenes.dnum+1
@@ -283,21 +283,22 @@ function update_scene()
end
if scenes.step>8 then
if btnp(KEY_SPACE) or btnp(KEY_DOWN) or btnp(KEY_UP) or btnp(KEY_LEFT) or btnp(KEY_RIGHT) or btnp(KEY_RETURN) then
if btnp(keyShoot) or btnp(keyDown) or btnp(keyUp) or btnp(keyLeft) or btnp(keyRight) or btnp(KEY_RETURN) or
padp(btnShoot) or padp(btnDown) or padp(btnUp) or padp(btnLeft) or padp(btnRight) then
if scenes.dnum==#scenes.current_scene then
stopmusic()
if batman.endgame then
final_init()
fade.fadeoutin()
else
_update=old_update
game_update=old_update
end
else
scenes.dnum=scenes.dnum+1
scenes.step=2
end
end
elseif btnp(KEY_SPACE) then
elseif btnp(keyShoot) or padp(btnShoot) then
scenes.step=8
end
end