1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-25 04:14:31 +00:00

big slopes, used on the Inn roof

This commit is contained in:
Zeno Rogue
2025-12-21 12:08:56 +01:00
parent 1f30f4c705
commit e5c8208e41
3 changed files with 43 additions and 33 deletions

View File

@@ -111,6 +111,10 @@ struct room {
return eWall(block_at[y][x] >> 3);
}
int subwall(int x, int y) {
return (block_at[y][x] & 7);
}
eWall at(intxy xy) { return at(xy.x, xy.y); }
void clear() {

View File

@@ -269,6 +269,9 @@ void entity::apply_walls() {
bool left = walls[b].glyph[0] == '\\';
// in big slopes, ignore one of the corners
if(current_room->subwall(x, y) == (left ? 5 : 4)) continue;
auto bad = [&] (xy p) {
if(left)
return -p.x + p.y >= -block_x * x + block_y * y && p.y >= block_y * y && p.x <= block_x * (x + 1);

View File

@@ -5,17 +5,19 @@ ROOM Red Rooster Inn
A staircase
. air
L locked door
/ right slope
\ left slope
MAP
...................##.............................+-....+..---...##.............
..................##################################----############............
.................##.....................#..............A......#....##...........
................##......................#.............A.......#.....##..........
...............##.......................#............A........#......##.........
..............##........................#...........A.........#.......##........
.............##.........................#..........A..........#........##.......
............##..........................L.........A...........L.........##......
...........##...........................L........A............L..........##.....
..........############################################------################....
...................//.............................+-....+..---...\\.............
..................//################################----##########\\............
.................//.....................#..............A......#....\\...........
................//......................#.............A.......#.....\\..........
...............//.......................#............A........#......\\.........
..............//........................#...........A.........#.......\\........
.............//.........................#..........A..........#........\\.......
............//..........................L.........A...........L.........\\......
...........//...........................L........A............L..........\\.....
..........//##########################################------################....
.........###........................................##.A..................##....
--........#b........................................#b..A.................#b....
..........##........................................##...A................##....
@@ -132,6 +134,7 @@ MOVE 1 Red Rooster Inn
ROOM Red Rooster Inn, host rooms
# wall
. air
/ right slope
MAP
................................................................................
................................................................................
@@ -150,29 +153,29 @@ MAP
................................................................##..............
................................................................#b..............
................................................................##..............
.......................................................##########b##############
......................................................#####.....................
.....................................................##b#b......................
....................................................#####.......................
...................................................##b#b........................
..................................................#####.........................
.................................................##b#b..........................
................................................#####...........................
...............................................##b#b............................
..............................................#####.............................
.............................................##b#b..............................
............................................####################################
...........................................##b#b................................
..........................................#####.................................
.........................................##b#b..................................
........................................#####...................................
.......................................##b#b....................................
......................................#####.....................................
.....................................##b#b......................................
....................................####........................................
....................................#b#b........................................
..................................##############################################
..................................#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b
......................................................../########b##############
.......................................................//##.....................
......................................................//##......................
.....................................................//##.......................
....................................................//#.........................
...................................................//#..........................
..................................................//#...........................
.................................................//#............................
................................................//#.............................
..............................................///##.............................
............................................../b#...............................
............................................////################################
............................................/b/b................................
..........................................////#.................................
........................................../b/b..................................
........................................////#...................................
......................................../b/b....................................
......................................////#.....................................
....................................../b/b......................................
....................................////........................................
..................................../b/b........................................
..................................////##########################################
................................../b/b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b#b
ITEM 484 123
strength
You notice a crow nest. There is a shiny ring inside!