mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-29 19:40:35 +00:00
R'Lyeh windows
This commit is contained in:
parent
6c2ae951b8
commit
a8c494a96c
34
graph.cpp
34
graph.cpp
@ -4573,7 +4573,6 @@ int ceiling_category(cell *c) {
|
|||||||
case laCaves:
|
case laCaves:
|
||||||
case laMirror:
|
case laMirror:
|
||||||
case laMirrorOld:
|
case laMirrorOld:
|
||||||
case laRlyeh:
|
|
||||||
case laHell:
|
case laHell:
|
||||||
case laCocytus:
|
case laCocytus:
|
||||||
case laEmerald:
|
case laEmerald:
|
||||||
@ -4581,8 +4580,6 @@ int ceiling_category(cell *c) {
|
|||||||
case laPower:
|
case laPower:
|
||||||
case laHive:
|
case laHive:
|
||||||
case laCamelot:
|
case laCamelot:
|
||||||
case laTemple:
|
|
||||||
case laPrincessQuest:
|
|
||||||
case laIvoryTower:
|
case laIvoryTower:
|
||||||
case laEFire:
|
case laEFire:
|
||||||
case laEEarth:
|
case laEEarth:
|
||||||
@ -4595,13 +4592,18 @@ int ceiling_category(cell *c) {
|
|||||||
case laMirrorWall:
|
case laMirrorWall:
|
||||||
case laTerracotta:
|
case laTerracotta:
|
||||||
case laMercuryRiver:
|
case laMercuryRiver:
|
||||||
case laRuins:
|
|
||||||
case laMagnetic:
|
case laMagnetic:
|
||||||
case laSwitch:
|
case laSwitch:
|
||||||
case laVariant:
|
case laVariant:
|
||||||
return 3;
|
return 3;
|
||||||
|
|
||||||
|
case laRlyeh:
|
||||||
|
case laTemple:
|
||||||
|
case laRuins:
|
||||||
|
return 5;
|
||||||
|
|
||||||
case laPalace:
|
case laPalace:
|
||||||
|
case laPrincessQuest:
|
||||||
default:
|
default:
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
@ -4685,6 +4687,7 @@ void draw_ceiling(cell *c, const transmatrix& V, int fd, color_t& fcol, color_t&
|
|||||||
}
|
}
|
||||||
|
|
||||||
case 4: {
|
case 4: {
|
||||||
|
if(camera_level <= geom3::HIGH2) return;
|
||||||
auto ispal = [&] (cell *c0) { return c0->land == laPalace && among(c0->wall, waPalace, waClosedGate, waOpenGate); };
|
auto ispal = [&] (cell *c0) { return c0->land == laPalace && among(c0->wall, waPalace, waClosedGate, waOpenGate); };
|
||||||
color_t wcol2 = 0xFFD500;
|
color_t wcol2 = 0xFFD500;
|
||||||
if(ispal(c)) {
|
if(ispal(c)) {
|
||||||
@ -4701,6 +4704,29 @@ void draw_ceiling(cell *c, const transmatrix& V, int fd, color_t& fcol, color_t&
|
|||||||
}
|
}
|
||||||
if(among(c->wall, waClosedGate, waOpenGate)) draw_shapevec(c, V, qfi.fshape->levels[SIDE_WALL], 0x202020FF, PPR::WALL);
|
if(among(c->wall, waClosedGate, waOpenGate)) draw_shapevec(c, V, qfi.fshape->levels[SIDE_WALL], 0x202020FF, PPR::WALL);
|
||||||
|
|
||||||
|
if(true) {
|
||||||
|
auto &star = queuepolyat(V * zpush(geom3::SKY+0.5), shNightStar, 0xFFFFFFFF, PPR::SKY);
|
||||||
|
star.tinf = NULL;
|
||||||
|
star.flags |= POLY_INTENSE;
|
||||||
|
}
|
||||||
|
int sk = get_skybrightness();
|
||||||
|
if(sk > 0) {
|
||||||
|
auto sky = draw_shapevec(c, V, shFullFloor.levels[SIDE_SKY], 0x000000FF + 0x100 * (sk/17), PPR::SKY);
|
||||||
|
if(sky) sky->tinf = NULL, sky->flags |= POLY_INTENSE;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case 5: {
|
||||||
|
if(camera_level <= geom3::WALL) return;
|
||||||
|
|
||||||
|
if(pseudohept(c)) {
|
||||||
|
forCellIdEx(c2, i, c)
|
||||||
|
placeSidewall(c, i, SIDE_HIGH, V, darkena(fcol, fd, 0xFF));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
draw_shapevec(c, V, qfi.fshape->levels[SIDE_WALL], darkena(fcol, fd, 0xFF), PPR::WALL);
|
||||||
|
|
||||||
if(true) {
|
if(true) {
|
||||||
auto &star = queuepolyat(V * zpush(geom3::SKY+0.5), shNightStar, 0xFFFFFFFF, PPR::SKY);
|
auto &star = queuepolyat(V * zpush(geom3::SKY+0.5), shNightStar, 0xFFFFFFFF, PPR::SKY);
|
||||||
star.tinf = NULL;
|
star.tinf = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user