[WIP] Lluita contra jefes.

+ Redisseny de mapa
+ Ajustada la vista abans del combat i fixada en la vertical
[NEW] Objecte point
This commit is contained in:
2026-04-06 23:30:53 +02:00
parent a481d3798b
commit f93c9b6c55
7 changed files with 65 additions and 25 deletions

View File

@@ -2,6 +2,7 @@ stages = {}
stages.boss_ready = false
stages.boss_loaded = false
stages.boss_hot_points = {}
boss = nil
function stages.stage1_init()
@@ -130,11 +131,18 @@ function stages.stage1_boss()
set_actors_enabled_by_room(false, "boss", stage1_boss_mapa.r0.r, stage1_boss_mapa.r1.r)
load_tilemap( sf_mapa, stage1_boss_mapa )
-- actors_in_room_backup_and_remove(stage1_boss_mapa.r0.r,stage1_boss_mapa.r1.r)
viewp:fixed({l=8,r=44,u=48,d=0})
-- viewp:fixed({l=8,r=44,u=48,d=0}, viewp.x, viewp.y-48)
-- viewp:fixed({l=8,r=44,u=0,d=0})
stages.boss_loaded = true
boss.reason=""
boss.enabled=true
boss:fight()
table.insert(stages.boss_hot_points, point.new(54,5,4,12,8,"P1"))
table.insert(stages.boss_hot_points, point.new(44,5,3,12,8,"P2"))
table.insert(stages.boss_hot_points, point.new(55,7,4,12,8,"P3"))
table.insert(stages.boss_hot_points, point.new(45,7,3,12,8,"P4"))
table.insert(stages.boss_hot_points, point.new(44,12,5,12,8,"P5"))
table.insert(stages.boss_hot_points, point.new(54,12,4,12,8,"P6"))
end
end
@@ -983,23 +991,23 @@ stage1_boss_mapa = {
256,256,256, 17,256,256,256,256,256,256,256,256,
256,256,256, 17,256,256,256,256,256,256,256,256,
256,256,256, 17,256, 1,256,256,256,256,256,256,
256,256,256, 17,256,256, 1,256,256,256,256, 41,
256,256,256, 17,112,256, 1,256,256,256,256,112,
256,256,256, 17,256, 1,256,256,256,256,256,256,
},
-- 45
{
18, 19, 18, 19, 18, 19, 18, 19, 18, 19, 17,256,
256,256,256,256,256,256,256,256,256,256, 17,256,
256,256,256,256,256,256,256,256,256,256, 17,256,
256,256,256,256,256,256,256,256, 2,256, 17,256,
256,256, 41,256,256,256,256, 2,256,256, 17,256,
69,256,256, 68,256, 67,256,256,256,256, 17,256,
256, 69, 64, 66,256,256,256,256,256,256, 17,256,
256, 69, 69, 69,256, 65,256,256, 2,256, 17,256,
256,256,112,256, 69, 69,256, 2,256,112, 17,256,
256,256,256,256,256,256,256,256, 2,256, 17,256,
},
-- 54
{
256,256,256, 17,256,256, 1,256,256,256,256, 4,
256,256,256, 17,112,256, 1,256,256,256,256, 4,
256,256,256, 17,256, 1,256,256,256,256,256,256,
256,256,256, 17,256,256, 1,256,256,256,256,256,
256,256,256, 17,112,256, 1,256,256, 1,256,256,
256,256,256, 17,256, 1,256,256,256,256,256,256,
256,256,256, 17,256,256, 1,256,256,256,256,256,
20, 21, 20, 21, 54, 55, 54, 55, 54, 55, 54, 56,
@@ -1007,9 +1015,9 @@ stage1_boss_mapa = {
},
-- 55
{
22, 22, 5,256,256,256,256, 2,256,256,17,256,
22, 22, 5,256,256,256,256, 2,256,112,17,256,
256,256,256,256,256,256,256,256, 2,256,17,256,
256,256,256,256,256,256,256, 2,256,256,17,256,
256,256,256,256, 2,256,256, 2,256,112,17,256,
256,256,256,256,256,256,256,256, 2,256,17,256,
256,256,256,256,256,256,256, 2,256,256,17,256,
54, 55, 54, 56, 56, 55, 54, 56, 54, 56,55, 54,