- Ja funciona en la ultima versió de mini (v0.9.95d)

This commit is contained in:
2024-11-24 20:21:14 +01:00
parent 75a1fb95d9
commit 9afc51f9a0
20 changed files with 81 additions and 81 deletions

View File

@@ -206,14 +206,14 @@ function update_game()
draw_hab(abad.hab,0,0,true)
text(abad.hab,120,1,2)
sspr(0,64+scroll*8,128,48,0,48)
blit(0,64+scroll*8,128,48,0,48)
color(3)
local xx=(seltile&15)*8
local yy=48+(seltile>>4)*8
rect(xx,yy,xx+8,yy+8)
text("EDIT",100,1,3)
local hx = abad.hab%10
local hy = flr(abad.hab/10)
local hy = math.floor(abad.hab/10)
scroll=0
if btnp(KEY_RIGHT) and hx<9 then
abad.hab=abad.hab+1
@@ -270,7 +270,7 @@ function update_game()
prnt("x"..abad.vides,114,13,2)
rectfill(102+(abad.energia>>1),30,122,37,16)
else
sspr(0,0,16,9,50,40,16,9,true)
blit(0,0,16,9,50,40,16,9,true)
if abad.hurting > 40 then
prnt("x"..abad.vides+1,63,43,3)
elseif abad.hurting < 20 then
@@ -298,7 +298,7 @@ function update_game()
switches.update()
--local hx = abad.hab%10
--local hy = flr(abad.hab/10)
--local hy = math.floor(abad.hab/10)
--if btnp(KEY_RETURN) then
-- mode=modes.editing
-- mapa_restore_backup()
@@ -540,7 +540,7 @@ end
function pause()
setsource(0)
setdest(back)
sspr(0,0,128,96,0,0)
blit(0,0,128,96,0,0)
setdest(0)
setsource(tiles)
pausa_option=1
@@ -562,7 +562,7 @@ function update_pause()
if btnp(KEY_ESCAPE) then
setsource(back)
sspr(0,0,128,96,0,0)
blit(0,0,128,96,0,0)
setsource(tiles)
game_update = pause_old_update
elseif btnp(keyDown) or btnp(keyUp) or padp(btnDown) or padp(btnUp) then
@@ -570,7 +570,7 @@ function update_pause()
elseif btnp(keyShoot) or padp(btnShoot) then
if pausa_option==1 then
setsource(back)
sspr(0,0,128,96,0,0)
blit(0,0,128,96,0,0)
setsource(tiles)
game_update = pause_old_update
else