- [FIX] Al canviar d'habitació cap a baix se rallaba
- [FIX] Al pulsar la majoria de botons en el menu, fa la acció i tanca el menú automàticament - [FIX] Ajustada la posició d'inici de l'heroi - [FIX] Arreglat bug raro que quan pillaves una moneda algunes momies canviaven de direcció - [WIP] Reajustant els tiles de les habitacions al nou tamany
This commit is contained in:
@@ -8,12 +8,12 @@ menu = {
|
||||
|
||||
draw = function()
|
||||
actions = {
|
||||
editor.play,
|
||||
function() rooms.save() editor.modified=false end,
|
||||
editor.quit,
|
||||
function() editor.layer=LAYER_FOREGROUND end,
|
||||
function() editor.layer=LAYER_BACKGROUND end,
|
||||
function() editor.layer=LAYER_ITEMS end,
|
||||
function() editor.play() menu.close() end,
|
||||
function() rooms.save() editor.modified=false menu.close() end,
|
||||
function() editor.quit() menu.close() end,
|
||||
function() editor.layer=LAYER_FOREGROUND menu.close() end,
|
||||
function() editor.layer=LAYER_BACKGROUND menu.close() end,
|
||||
function() editor.layer=LAYER_ITEMS menu.close() end,
|
||||
function() rooms.toggle_visibility(LAYER_FOREGROUND) end,
|
||||
function() rooms.toggle_visibility(LAYER_BACKGROUND) end,
|
||||
function() rooms.toggle_visibility(LAYER_SHADOWS) end,
|
||||
@@ -82,6 +82,13 @@ menu = {
|
||||
end
|
||||
end,
|
||||
|
||||
close = function()
|
||||
if not menu.hidden then
|
||||
menu.hidden = true
|
||||
tweening.add(24,0,0.25,easing.easeOutBounce,function(value,n,finished)menu.pos_y=value end)
|
||||
end
|
||||
end,
|
||||
|
||||
-- current_x = 0,
|
||||
--
|
||||
-- init = function()
|
||||
|
||||
Reference in New Issue
Block a user