forked from JailDoctor/cacaus
Modificades les funcions draw de batman, caco, elalien, imp, premiere i zombie. El menú principal ja pareix que es veu be. Parametritzats els avatars que faltaven en scenes
This commit is contained in:
@@ -18,6 +18,9 @@ require "cacau"
|
||||
require "fireball"
|
||||
require "switches"
|
||||
|
||||
local arcade_config = require("arcade_config")
|
||||
o2aX = arcade_config.org2arc_escala
|
||||
|
||||
modes={playing=0,editing=1}
|
||||
--mode=modes.editing
|
||||
mode=modes.playing
|
||||
@@ -313,10 +316,10 @@ function update_game()
|
||||
end
|
||||
|
||||
function redraw_menu_hab()
|
||||
draw_hab(menu_room,16,41)
|
||||
draw.rectf(0,0,15,97,16)
|
||||
draw.rectf(114,0,78,97,16)
|
||||
draw.rect(15,40,99,50,2)
|
||||
draw_hab(menu_room,16*o2aX,41*o2aX)
|
||||
draw.rectf(0,0,15*o2aX,97*o2aX,16)
|
||||
draw.rectf(114*o2aX,0,78*o2aX,97*o2aX,16)
|
||||
draw.rect(15*o2aX,40*o2aX,99*o2aX,50*o2aX,2)
|
||||
mapa_update(abad.hab,menu_room)
|
||||
|
||||
for key,actor in pairs(actors) do
|
||||
@@ -337,7 +340,7 @@ function update_menu()
|
||||
end
|
||||
|
||||
surf.cls(16)
|
||||
text("C A C A U S", 42, 8, 15)
|
||||
text("C A C A U S", 42*o2aX, 8*o2aX, 15)
|
||||
|
||||
menu_state()
|
||||
end
|
||||
@@ -349,14 +352,14 @@ function update_options_menu()
|
||||
parpadeig=true
|
||||
if menu_count>40 then menu_count=0 end
|
||||
end
|
||||
draw.rect(28,28+(10*menu_sel),73,9,14)
|
||||
if (not parpadeig) then draw.rect(28,28+(10*menu_sel),73,9,13) end
|
||||
draw.rect(28*o2aX,(28+(10*menu_sel))*o2aX,73*o2aX,9*o2aX,14)
|
||||
if (not parpadeig) then draw.rect(28*o2aX,(28+(10*menu_sel))*o2aX,73*o2aX,9*o2aX,13) end
|
||||
|
||||
draw.text("MÚSICA", 30, 30, 14); draw.text(music.enabled() and "SI" or "NO",91,30,15)
|
||||
draw.text("SÓ", 30, 40, 14); draw.text(sound.enabled() and "SI" or "NO",91,40,15)
|
||||
draw.text("REDEFINIR TECLAT", 30, 50, 14)
|
||||
draw.text("REDEFINIR GAMEPAD", 30, 60, 14)
|
||||
draw.text("TORNAR", 30, 70, 14)
|
||||
draw.text("MÚSICA", 30*o2aX, 30*o2aX, 14); draw.text(music.enabled() and "SI" or "NO",91*o2aX,30*o2aX,15)
|
||||
draw.text("SÓ", 30*o2aX, 40*o2aX, 14); draw.text(sound.enabled() and "SI" or "NO",91*o2aX,40*o2aX,15)
|
||||
draw.text("REDEFINIR TECLAT", 30*o2aX, 50*o2aX, 14)
|
||||
draw.text("REDEFINIR GAMEPAD", 30*o2aX, 60*o2aX, 14)
|
||||
draw.text("TORNAR", 30*o2aX, 70*o2aX, 14)
|
||||
|
||||
if key.press(keyShoot) or key.press(key.SPACE) or pad.press(pad.A) or pad.press(btnShoot) then
|
||||
if menu_sel==0 then
|
||||
@@ -395,10 +398,10 @@ function update_main_menu()
|
||||
parpadeig=true
|
||||
if menu_count>40 then menu_count=0 end
|
||||
end
|
||||
draw.rect(28,18+(10*menu_sel),73,9,14)
|
||||
if (not parpadeig) then draw.rect(28,18+(10*menu_sel),73,9,13) end
|
||||
text("JUGAR", 54, 20, 14)
|
||||
text("OPCIONS", 50, 30, 14)
|
||||
draw.rect(28*o2aX,(18+(10*menu_sel))*o2aX,73*o2aX,9*o2aX,14)
|
||||
if (not parpadeig) then draw.rect(28*o2aX,(18+(10*menu_sel))*o2aX,73*o2aX,9*o2aX,13) end
|
||||
text("JUGAR", 54*o2aX, 20*o2aX, 14)
|
||||
text("OPCIONS", 50*o2aX, 30*o2aX, 14)
|
||||
--if (not parpadeig or menu_sel~=2) then text("REDEFINIR GAMEPAD", 30, 32, 13) end
|
||||
|
||||
redraw_menu_hab()
|
||||
|
||||
Reference in New Issue
Block a user