mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-26 07:02:49 +00:00
rogueviz:: ads:: 'asteroids' land for black screen in the tour
This commit is contained in:
parent
296abbe7c4
commit
765c533f2c
@ -26,6 +26,8 @@ color_t empty_color(cell *c) {
|
||||
return 0x301010FF;
|
||||
case laJungle:
|
||||
return 0x103010FF;
|
||||
case laAsteroids:
|
||||
return 0xFF;
|
||||
default:
|
||||
return 0x181818FF;
|
||||
}
|
||||
@ -41,6 +43,8 @@ color_t empty_outline(cell *c) {
|
||||
return 0xC08080FF;
|
||||
case laJungle:
|
||||
return 0x80C080FF;
|
||||
case laAsteroids:
|
||||
return 0xFF;
|
||||
default:
|
||||
return 0x181818FF;
|
||||
}
|
||||
|
@ -58,6 +58,8 @@ void draw_game_cell(const cell_to_draw& cd) {
|
||||
|
||||
auto& t = ci.type;
|
||||
|
||||
color_t col = 0;
|
||||
|
||||
if(hv) ;
|
||||
else if(t == wtGate) {
|
||||
ld minv = hlist[0].shift;
|
||||
@ -95,9 +97,11 @@ void draw_game_cell(const cell_to_draw& cd) {
|
||||
for(int v=floor(minv); v<maxv+1; v++) {
|
||||
draw_slice(v, v+1, (v & 3) ? 0x080828FF : 0xA04020FF);
|
||||
}
|
||||
|
||||
col = 1;
|
||||
}
|
||||
else {
|
||||
color_t col =
|
||||
col =
|
||||
t == wtSolid ? 0x603000FF :
|
||||
t == wtDestructible ? 0x301800FF :
|
||||
t == wtBarrier ? 0xC0C0C0FF :
|
||||
@ -106,6 +110,7 @@ void draw_game_cell(const cell_to_draw& cd) {
|
||||
color_t out = t == wtNone ? empty_outline(c) : 0xFF;
|
||||
|
||||
for(auto h: hlist) curvepoint(h.h);
|
||||
if(col >> 8)
|
||||
addaura(shiftless(cd.center.h), col >> 8, 0);
|
||||
queuecurve(shiftless(Id), out, col, PPR::WALL);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user