[NEW] Afegida una capa al mapa per a fer coses especials
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user