- [FIX] Al tornar al editor des del joc, recuperar la paleta normal
- [FIX] Quan no es pinta el fondo, que es veja un quadrejat, com el fondo "transparent" dels editor gràfics - [FIX] Durant el joc totes les capes han de vores, independentment del marcat en l'editor
This commit is contained in:
@@ -19,12 +19,20 @@ editor = {
|
|||||||
app.update = editor.update
|
app.update = editor.update
|
||||||
sys.beat(2)
|
sys.beat(2)
|
||||||
shader.disable();
|
shader.disable();
|
||||||
|
pal.set(palfade.original)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
update = function()
|
update = function()
|
||||||
view.origin(0,0)
|
view.origin(0,0)
|
||||||
surf.target(0)
|
surf.target(0)
|
||||||
|
|
||||||
|
for y=0,104,8 do
|
||||||
|
for x=0,160,8 do
|
||||||
|
local color = (((x+y)//8)%2==0) and 23 or 16
|
||||||
|
draw.rectf(x, y, 8, 8, color);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- Pintar el menú (el marcador serà en el modul game.lua)
|
-- Pintar el menú (el marcador serà en el modul game.lua)
|
||||||
--score.draw()
|
--score.draw()
|
||||||
menu.draw()
|
menu.draw()
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ rooms = {
|
|||||||
end,
|
end,
|
||||||
|
|
||||||
is_visible = function(layer)
|
is_visible = function(layer)
|
||||||
return rooms.visibility & layer == layer
|
return (app.update==game.update) or (rooms.visibility & layer == layer)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
set_visibility = function(layer, visibility)
|
set_visibility = function(layer, visibility)
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Reference in New Issue
Block a user