engine-c: denser BT_REFINERY oil-field/derrick/tank silhouettes
This commit is contained in:
parent
852fcf80e3
commit
2afc89d383
2 changed files with 84 additions and 18 deletions
|
|
@ -920,12 +920,19 @@ static void draw_bld(Building *b, int sx, int sy) {
|
|||
line(sx + 14, sy + H - 5, sx + W - 16, sy + H - 5, 55, 50, 38);
|
||||
break;
|
||||
case BT_REFINERY:
|
||||
/* oil-field: derrick + pumpjack + twin tanks + pipes + hopper (KKND read) */
|
||||
fill_rect(sx + 4, sy + H - 12, W - 8, 10, ok, og, ob); /* slab */
|
||||
fill_rect(sx + 6, sy + H - 10, W - 12, 6, 70, 62, 48);
|
||||
/* latticed derrick mast */
|
||||
/* dense oil-field: pad, derrick, pumpjack, twin tanks, pipes, hopper (KKND) */
|
||||
fill_rect(sx + 3, sy + H - 12, W - 6, 10, ok, og, ob); /* slab */
|
||||
fill_rect(sx + 5, sy + H - 10, W - 10, 6, 70, 62, 48);
|
||||
fill_rect(sx + 6, sy + H - 9, 2, 2, 35, 32, 28); /* pad bolt L */
|
||||
fill_rect(sx + W - 8, sy + H - 9, 2, 2, 35, 32, 28); /* pad bolt R */
|
||||
fill_rect(sx + W/2 - 2, sy + H - 9, 2, 2, 35, 32, 28); /* pad bolt C */
|
||||
fill_rect(sx + 4, sy + H - 4, W - 8, 2, 45, 38, 28); /* curb */
|
||||
/* latticed derrick mast + braces */
|
||||
fill_rect(sx + W/2 - 3, sy + 4, 6, H - 18, ok, og, ob);
|
||||
fill_rect(sx + W/2 - 2, sy + 5, 4, H - 20, 95, 85, 65);
|
||||
fill_rect(sx + W/2 - 4, sy + 12, 8, 2, 55, 48, 38); /* cross brace */
|
||||
fill_rect(sx + W/2 - 4, sy + 26, 8, 2, 55, 48, 38);
|
||||
fill_rect(sx + W/2 - 4, sy + 40, 8, 2, 55, 48, 38);
|
||||
line(sx + W/2 - 6, sy + 10, sx + W/2 + 6, sy + 22, 55, 48, 38);
|
||||
line(sx + W/2 + 6, sy + 10, sx + W/2 - 6, sy + 22, 55, 48, 38);
|
||||
line(sx + W/2 - 6, sy + 24, sx + W/2 + 6, sy + 36, 55, 48, 38);
|
||||
|
|
@ -936,41 +943,67 @@ static void draw_bld(Building *b, int sx, int sy) {
|
|||
line(sx + W/2 + 5, sy + 8, sx + W/2 + 5, sy + H - 16, 40, 36, 30);
|
||||
fill_rect(sx + W/2 - 7, sy + 2, 14, 5, ok, og, ob); /* crown */
|
||||
fill_rect(sx + W/2 - 5, sy + 3, 10, 3, 200, 170, 80); /* beacon */
|
||||
fill_rect(sx + W/2 - 1, sy + 1, 2, 2, 255, 230, 120); /* beacon tip */
|
||||
/* pumpjack horse-head (left of mast) */
|
||||
fill_rect(sx + 8, sy + H/2 - 2, 4, H/2 - 8, ok, og, ob);
|
||||
fill_rect(sx + 9, sy + H/2, 2, H/2 - 12, 90, 80, 60);
|
||||
fill_rect(sx + 6, sy + H/2 - 6, 14, 4, ok, og, ob);
|
||||
fill_rect(sx + 7, sy + H/2 - 5, 12, 2, 110, 95, 70);
|
||||
fill_rect(sx + 10, sy + H/2 - 8, 3, 3, 70, 60, 45); /* pivot block */
|
||||
disc(sx + 8, sy + H/2 - 8, 4, ok, og, ob); /* horse head */
|
||||
disc(sx + 8, sy + H/2 - 8, 2, 130, 110, 80);
|
||||
line(sx + 10, sy + H/2 - 4, sx + W/2 - 4, sy + 16, 80, 70, 50); /* bridle cable */
|
||||
/* gantry arm + walkway toward hopper */
|
||||
fill_rect(sx + 7, sy + H - 14, 6, 3, 50, 44, 34); /* pump base */
|
||||
/* gantry arm + walkway + bracing toward hopper */
|
||||
fill_rect(sx + W/2 + 2, sy + 14, W/2 - 10, 4, ok, og, ob);
|
||||
fill_rect(sx + W/2 + 3, sy + 15, W/2 - 12, 2, 120, 100, 60);
|
||||
fill_rect(sx + W/2 + 4, sy + 18, W/2 - 16, 2, 70, 60, 45); /* catwalk */
|
||||
fill_rect(sx + W/2 + 6, sy + 20, 2, 8, 60, 52, 40); /* catwalk post */
|
||||
fill_rect(sx + W - 18, sy + 20, 2, 8, 60, 52, 40);
|
||||
fill_rect(sx + W/2 + 8, sy + 22, W/2 - 28, 1, 90, 75, 50); /* rail */
|
||||
line(sx + W/2 + 4, sy + 18, sx + W - 12, sy + H - 22, 90, 75, 50);
|
||||
/* hopper / processing shed + windows */
|
||||
/* hopper / processing shed + windows/door/hazard */
|
||||
fill_rect(sx + W - 24, sy + H - 32, 18, 18, ok, og, ob);
|
||||
fill_rect(sx + W - 22, sy + H - 30, 14, 14, br, bg, bb);
|
||||
fill_rect(sx + W - 20, sy + H - 28, 10, 6, 140, 110, 55);
|
||||
fill_rect(sx + W - 18, sy + H - 26, 3, 3, 180, 220, 255); /* window */
|
||||
fill_rect(sx + W - 13, sy + H - 26, 3, 3, 180, 220, 255);
|
||||
fill_rect(sx + W - 18, sy + H - 22, 3, 3, 160, 200, 240); /* window row2 */
|
||||
fill_rect(sx + W - 13, sy + H - 22, 3, 3, 160, 200, 240);
|
||||
fill_rect(sx + W - 16, sy + H - 18, 4, 4, 40, 36, 30); /* chute */
|
||||
/* twin scrap tanks */
|
||||
fill_rect(sx + W - 21, sy + H - 16, 5, 6, 35, 32, 38); /* door */
|
||||
fill_rect(sx + W - 21, sy + H - 16, 5, 1, 200, 160, 40); /* hazard */
|
||||
fill_rect(sx + W - 19, sy + H - 13, 1, 2, 180, 170, 90); /* handle */
|
||||
fill_rect(sx + W - 12, sy + H - 34, 4, 3, 90, 80, 55); /* roof vent */
|
||||
/* twin scrap tanks + bands/rivets */
|
||||
disc(sx + 14, sy + H - 18, 9, ok, og, ob);
|
||||
disc(sx + 14, sy + H - 18, 7, 200, 165, 85);
|
||||
ring(sx + 14, sy + H - 18, 4, 2, 90, 70, 45);
|
||||
fill_rect(sx + 8, sy + H - 20, 12, 1, 120, 95, 50); /* tank band */
|
||||
fill_rect(sx + 8, sy + H - 16, 12, 1, 110, 88, 45);
|
||||
fill_rect(sx + 10, sy + H - 22, 2, 2, 90, 75, 45); /* rivet */
|
||||
fill_rect(sx + 16, sy + H - 14, 2, 2, 90, 75, 45);
|
||||
disc(sx + 28, sy + H - 16, 7, ok, og, ob);
|
||||
disc(sx + 28, sy + H - 16, 5, 180, 150, 75);
|
||||
ring(sx + 28, sy + H - 16, 3, 1, 80, 60, 40);
|
||||
/* pipe runs tank→mast→hopper */
|
||||
fill_rect(sx + 23, sy + H - 18, 10, 1, 100, 80, 40); /* tank2 band */
|
||||
fill_rect(sx + 25, sy + H - 14, 2, 2, 85, 70, 40); /* rivet */
|
||||
fill_rect(sx + 12, sy + H - 28, 4, 3, ok, og, ob); /* tank cap L */
|
||||
fill_rect(sx + 26, sy + H - 24, 4, 2, ok, og, ob); /* tank cap R */
|
||||
/* pipe runs tank→mast→hopper + valves */
|
||||
line(sx + 20, sy + H - 16, sx + W/2 - 4, sy + H - 12, 110, 90, 50);
|
||||
line(sx + 28, sy + H - 14, sx + W/2 - 2, sy + H - 14, 100, 85, 45);
|
||||
line(sx + W/2 + 4, sy + H - 14, sx + W - 20, sy + H - 20, 100, 85, 45);
|
||||
line(sx + 14, sy + H - 26, sx + 14, sy + H - 20, 100, 85, 45); /* riser */
|
||||
fill_rect(sx + W/2 - 1, sy + H - 16, 3, 4, 80, 70, 50); /* valve */
|
||||
/* oil stain pool under slab */
|
||||
fill_rect(sx + W/2 - 2, sy + H - 15, 5, 1, 200, 160, 40); /* valve hazard */
|
||||
fill_rect(sx + 18, sy + H - 15, 3, 3, 75, 65, 48); /* elbow flange */
|
||||
fill_rect(sx + W - 22, sy + H - 21, 3, 3, 75, 65, 48); /* hopper flange */
|
||||
/* oil stain + drip pans */
|
||||
disc(sx + W/2 - 8, sy + H - 6, 4, 40, 32, 20);
|
||||
disc(sx + W/2 + 6, sy + H - 5, 3, 35, 28, 18);
|
||||
fill_rect(sx + 10, sy + H - 8, 8, 2, 30, 24, 16); /* drip pan */
|
||||
fill_rect(sx + 24, sy + H - 7, 6, 2, 28, 22, 14);
|
||||
break;
|
||||
case BT_POWER:
|
||||
/* cooling towers + reactor + steam + yard/cables/fins (KKND plant) */
|
||||
|
|
|
|||
|
|
@ -726,12 +726,19 @@ SDL_Texture *sprites_make_bld(SDL_Renderer *r, BuildingType t, Faction f) {
|
|||
line(s, 14, H - 5, W - 16, H - 5, 55, 50, 38, 255);
|
||||
break;
|
||||
case BT_REFINERY:
|
||||
/* oil-field: derrick + pumpjack + twin tanks + pipes + hopper (KKND read) */
|
||||
fill_rect(s, 4, H - 12, W - 8, 10, ok, og, ob, 255); /* slab */
|
||||
fill_rect(s, 6, H - 10, W - 12, 6, 70, 62, 48, 255);
|
||||
/* latticed derrick mast */
|
||||
/* dense oil-field: pad, derrick, pumpjack, twin tanks, pipes, hopper (KKND) */
|
||||
fill_rect(s, 3, H - 12, W - 6, 10, ok, og, ob, 255); /* slab */
|
||||
fill_rect(s, 5, H - 10, W - 10, 6, 70, 62, 48, 255);
|
||||
fill_rect(s, 6, H - 9, 2, 2, 35, 32, 28, 255); /* pad bolt L */
|
||||
fill_rect(s, W - 8, H - 9, 2, 2, 35, 32, 28, 255); /* pad bolt R */
|
||||
fill_rect(s, W/2 - 2, H - 9, 2, 2, 35, 32, 28, 255); /* pad bolt C */
|
||||
fill_rect(s, 4, H - 4, W - 8, 2, 45, 38, 28, 255); /* curb */
|
||||
/* latticed derrick mast + braces */
|
||||
fill_rect(s, W/2 - 3, 4, 6, H - 18, ok, og, ob, 255);
|
||||
fill_rect(s, W/2 - 2, 5, 4, H - 20, 95, 85, 65, 255);
|
||||
fill_rect(s, W/2 - 4, 12, 8, 2, 55, 48, 38, 255); /* cross brace */
|
||||
fill_rect(s, W/2 - 4, 26, 8, 2, 55, 48, 38, 255);
|
||||
fill_rect(s, W/2 - 4, 40, 8, 2, 55, 48, 38, 255);
|
||||
line(s, W/2 - 6, 10, W/2 + 6, 22, 55, 48, 38, 255);
|
||||
line(s, W/2 + 6, 10, W/2 - 6, 22, 55, 48, 38, 255);
|
||||
line(s, W/2 - 6, 24, W/2 + 6, 36, 55, 48, 38, 255);
|
||||
|
|
@ -742,41 +749,67 @@ SDL_Texture *sprites_make_bld(SDL_Renderer *r, BuildingType t, Faction f) {
|
|||
line(s, W/2 + 5, 8, W/2 + 5, H - 16, 40, 36, 30, 255);
|
||||
fill_rect(s, W/2 - 7, 2, 14, 5, ok, og, ob, 255); /* crown */
|
||||
fill_rect(s, W/2 - 5, 3, 10, 3, 200, 170, 80, 255); /* beacon */
|
||||
fill_rect(s, W/2 - 1, 1, 2, 2, 255, 230, 120, 255); /* beacon tip */
|
||||
/* pumpjack horse-head (left of mast) */
|
||||
fill_rect(s, 8, H/2 - 2, 4, H/2 - 8, ok, og, ob, 255);
|
||||
fill_rect(s, 9, H/2, 2, H/2 - 12, 90, 80, 60, 255);
|
||||
fill_rect(s, 6, H/2 - 6, 14, 4, ok, og, ob, 255);
|
||||
fill_rect(s, 7, H/2 - 5, 12, 2, 110, 95, 70, 255);
|
||||
fill_rect(s, 10, H/2 - 8, 3, 3, 70, 60, 45, 255); /* pivot block */
|
||||
disc(s, 8, H/2 - 8, 4, ok, og, ob, 255); /* horse head */
|
||||
disc(s, 8, H/2 - 8, 2, 130, 110, 80, 255);
|
||||
line(s, 10, H/2 - 4, W/2 - 4, 16, 80, 70, 50, 255); /* bridle cable */
|
||||
/* gantry arm + walkway toward hopper */
|
||||
fill_rect(s, 7, H - 14, 6, 3, 50, 44, 34, 255); /* pump base */
|
||||
/* gantry arm + walkway + bracing toward hopper */
|
||||
fill_rect(s, W/2 + 2, 14, W/2 - 10, 4, ok, og, ob, 255);
|
||||
fill_rect(s, W/2 + 3, 15, W/2 - 12, 2, 120, 100, 60, 255);
|
||||
fill_rect(s, W/2 + 4, 18, W/2 - 16, 2, 70, 60, 45, 255); /* catwalk */
|
||||
fill_rect(s, W/2 + 6, 20, 2, 8, 60, 52, 40, 255); /* catwalk post */
|
||||
fill_rect(s, W - 18, 20, 2, 8, 60, 52, 40, 255);
|
||||
fill_rect(s, W/2 + 8, 22, W/2 - 28, 1, 90, 75, 50, 255); /* rail */
|
||||
line(s, W/2 + 4, 18, W - 12, H - 22, 90, 75, 50, 255);
|
||||
/* hopper / processing shed + windows */
|
||||
/* hopper / processing shed + windows/door/hazard */
|
||||
fill_rect(s, W - 24, H - 32, 18, 18, ok, og, ob, 255);
|
||||
fill_rect(s, W - 22, H - 30, 14, 14, base.r, base.g, base.b, 255);
|
||||
fill_rect(s, W - 20, H - 28, 10, 6, 140, 110, 55, 255);
|
||||
fill_rect(s, W - 18, H - 26, 3, 3, 180, 220, 255, 255); /* window */
|
||||
fill_rect(s, W - 13, H - 26, 3, 3, 180, 220, 255, 255);
|
||||
fill_rect(s, W - 18, H - 22, 3, 3, 160, 200, 240, 255); /* window row2 */
|
||||
fill_rect(s, W - 13, H - 22, 3, 3, 160, 200, 240, 255);
|
||||
fill_rect(s, W - 16, H - 18, 4, 4, 40, 36, 30, 255); /* chute */
|
||||
/* twin scrap tanks */
|
||||
fill_rect(s, W - 21, H - 16, 5, 6, 35, 32, 38, 255); /* door */
|
||||
fill_rect(s, W - 21, H - 16, 5, 1, 200, 160, 40, 255); /* hazard */
|
||||
fill_rect(s, W - 19, H - 13, 1, 2, 180, 170, 90, 255); /* handle */
|
||||
fill_rect(s, W - 12, H - 34, 4, 3, 90, 80, 55, 255); /* roof vent */
|
||||
/* twin scrap tanks + bands/rivets */
|
||||
disc(s, 14, H - 18, 9, ok, og, ob, 255);
|
||||
disc(s, 14, H - 18, 7, 200, 165, 85, 255);
|
||||
ring(s, 14, H - 18, 4, 2, 90, 70, 45, 255);
|
||||
fill_rect(s, 8, H - 20, 12, 1, 120, 95, 50, 255); /* tank band */
|
||||
fill_rect(s, 8, H - 16, 12, 1, 110, 88, 45, 255);
|
||||
fill_rect(s, 10, H - 22, 2, 2, 90, 75, 45, 255); /* rivet */
|
||||
fill_rect(s, 16, H - 14, 2, 2, 90, 75, 45, 255);
|
||||
disc(s, 28, H - 16, 7, ok, og, ob, 255);
|
||||
disc(s, 28, H - 16, 5, 180, 150, 75, 255);
|
||||
ring(s, 28, H - 16, 3, 1, 80, 60, 40, 255);
|
||||
/* pipe runs tank→mast→hopper */
|
||||
fill_rect(s, 23, H - 18, 10, 1, 100, 80, 40, 255); /* tank2 band */
|
||||
fill_rect(s, 25, H - 14, 2, 2, 85, 70, 40, 255); /* rivet */
|
||||
fill_rect(s, 12, H - 28, 4, 3, ok, og, ob, 255); /* tank cap L */
|
||||
fill_rect(s, 26, H - 24, 4, 2, ok, og, ob, 255); /* tank cap R */
|
||||
/* pipe runs tank→mast→hopper + valves */
|
||||
line(s, 20, H - 16, W/2 - 4, H - 12, 110, 90, 50, 255);
|
||||
line(s, 28, H - 14, W/2 - 2, H - 14, 100, 85, 45, 255);
|
||||
line(s, W/2 + 4, H - 14, W - 20, H - 20, 100, 85, 45, 255);
|
||||
line(s, 14, H - 26, 14, H - 20, 100, 85, 45, 255); /* riser */
|
||||
fill_rect(s, W/2 - 1, H - 16, 3, 4, 80, 70, 50, 255); /* valve */
|
||||
/* oil stain pool under slab */
|
||||
fill_rect(s, W/2 - 2, H - 15, 5, 1, 200, 160, 40, 255); /* valve hazard */
|
||||
fill_rect(s, 18, H - 15, 3, 3, 75, 65, 48, 255); /* elbow flange */
|
||||
fill_rect(s, W - 22, H - 21, 3, 3, 75, 65, 48, 255); /* hopper flange */
|
||||
/* oil stain + drip pans */
|
||||
disc(s, W/2 - 8, H - 6, 4, 40, 32, 20, 255);
|
||||
disc(s, W/2 + 6, H - 5, 3, 35, 28, 18, 255);
|
||||
fill_rect(s, 10, H - 8, 8, 2, 30, 24, 16, 255); /* drip pan */
|
||||
fill_rect(s, 24, H - 7, 6, 2, 28, 22, 14, 255);
|
||||
break;
|
||||
case BT_POWER:
|
||||
/* cooling towers + reactor + steam + yard/cables/fins (KKND plant) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue