[NEW] Afegida una capa al mapa per a fer coses especials

This commit is contained in:
2026-05-02 22:01:44 +02:00
parent a4f7d78457
commit 7eb8162621
4 changed files with 74 additions and 20 deletions

View File

@@ -25,8 +25,9 @@ require "trigger_event"
require "batman"
require "health_potion"
require "tiles_layer2"
local DEBUG = false
local DEBUG = true
local tile_w = arcade_config.tiles_width
local tile_h = arcade_config.tiles_height
@@ -187,6 +188,7 @@ end
function world_update()
-- Actualitzar moviment del mapa (ex: tiles animats)
arc_mapa_update()
tiles_layer2.update()
-- Moure a tots
for key,actor in pairs(actors) do
@@ -227,6 +229,7 @@ end
function world_draw()
-- Pintar la finestra del mon
render_map(sf_mapa, tiles, viewp.x, viewp.y)
tiles_layer2.draw()
if stages.boss_loaded then stage_draw_back() end