From 5e9f4139c31b1d5a7199117f9e7125a08fbb1b9d Mon Sep 17 00:00:00 2001 From: rexim Date: Sun, 17 Mar 2024 02:36:42 +0700 Subject: Improve the design of the second boss room --- game.adb | 2 +- map.txt | 65 +++++++++++++++++++++++++++++++++------------------------------- 2 files changed, 35 insertions(+), 32 deletions(-) diff --git a/game.adb b/game.adb index 3d2f625..0c4b492 100644 --- a/game.adb +++ b/game.adb @@ -865,7 +865,7 @@ procedure Game is begin while Boss_Can_Stand_Here(Game, Position, Me) loop Step(Dir, Position); - if Game.Bosses(Me).Path(Position.Y, Position.X) = Current - 1 then + if Within_Map(Game, Position) and then Game.Bosses(Me).Path(Position.Y, Position.X) = Current - 1 then Game.Bosses(Me).Position := Position; exit Search; end if; diff --git a/map.txt b/map.txt index a820cb8..aa73c98 100644 --- a/map.txt +++ b/map.txt @@ -11,7 +11,7 @@ #.........# #...................# #######.........# #...................######### #.....#.........# #...................#.......# - #.....#.........#############################...................#.......# + #.....#.........#############################........ ..........#.......# #..*..=.........&......!........................................&...%...# #.....#.........#############################...................#.......# #.....#.........# #...................#.......# @@ -20,7 +20,7 @@ #####.##### #...................# #.# #...................# #.# #...................# - #.# ##################### + #.# #########...######### #####.##### #...# #.........# #...# #.........# #...# @@ -32,32 +32,35 @@ ########### #...# #...# #...# - ####################################### #...# - #.....................................# #...# - #.....................................# #...# - #...#####........#####........#####...# #...# - #...#.*.#........#####........#...#...# #...# - #...#.@.#........#####........#...#...# #...# - #...#...#........#####........#...#...# #...# - #...##.##........#####........##.##...# #...# - #.....................................# #...# - #.....................................# #...# - #.....................................# #...# - #..............M......................# #...# - #.....................................#######################...# - #...............................................................# - #.............................................................!.# - #...............................................................# - #.....................................########################### - #.....................................# - #.....................................# - #.....................................# - #.....................................# - #.....................................# - #.....................................# - #.....................................# - #.....................................# - #.....................................# - #.....................................# - #.....................................# - ####################################### + #...# + #...# + #...# + #...# + #...# + #...# + #...# + #...# + ######################## #...# + ###...##........##...### #...# + ###...##........##...### #...# + #......=...............# #...# + #...*..=...........*...# #...# + #......=...............# #...# + ###...##........##...### #...# + ###===##........##...### #...# +#################################......................# #...# +.........................................M.............# #...# +.......................................................##############################...# +......................................................................................!.# +..........................................................................@.............# +.......................................................################################## +.......................................................# +#################################......................# + ###===##........##===### + ###...##........##...### + #......=........=......# + #...*..=........=..*...# + #......=........=......# + ###...##........##...### + ###...##........##...### + ######################## -- cgit v1.2.3