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