engine-c: denser BT_WALL fort/battlement/gate/scar silhouettes
This commit is contained in:
parent
b1708d1eb6
commit
3cf39ff9bc
2 changed files with 88 additions and 40 deletions
|
|
@ -962,38 +962,62 @@ SDL_Texture *sprites_make_bld(SDL_Renderer *r, BuildingType t, Faction f) {
|
|||
fill_rect(s, W - 6, H/2 - 5, 3, 2, 220, 210, 160, 255); /* side flood */
|
||||
break;
|
||||
case BT_WALL:
|
||||
/* thick fort wall + crenels + seams + embrasure (KKND fort read) */
|
||||
fill_rect(s, 0, 4, W, H - 4, ok, og, ob, 255);
|
||||
fill_rect(s, 1, 6, W - 2, H - 8, 165, 145, 110, 255);
|
||||
/* denser fort: battlement, gate, scars, rubble (KKND fort read) */
|
||||
fill_rect(s, 0, 4, W, H - 4, ok, og, ob, 255); /* outer hull */
|
||||
fill_rect(s, 1, 6, W - 2, H - 8, 165, 145, 110, 255); /* face */
|
||||
fill_rect(s, 2, 7, W - 4, H - 12, 150, 132, 100, 255); /* inner face */
|
||||
fill_rect(s, 2, H - 6, W - 4, 4, 90, 78, 58, 255); /* plinth */
|
||||
fill_rect(s, 3, H - 5, W - 6, 2, 70, 60, 48, 255); /* plinth shadow */
|
||||
fill_rect(s, 1, H - 5, 3, 3, 70, 60, 45, 255); /* corner stone L */
|
||||
fill_rect(s, W - 4, H - 5, 3, 3, 70, 60, 45, 255); /* corner stone R */
|
||||
/* thick merlons + caps */
|
||||
fill_rect(s, 1, 1, 8, 10, ok, og, ob, 255);
|
||||
fill_rect(s, 2, 2, 6, 8, 195, 175, 140, 255);
|
||||
fill_rect(s, 3, 1, 4, 2, 220, 200, 160, 255); /* merlon cap */
|
||||
fill_rect(s, W/2 - 4, 1, 8, 10, ok, og, ob, 255);
|
||||
fill_rect(s, W/2 - 3, 2, 6, 8, 200, 180, 145, 255);
|
||||
fill_rect(s, W/2 - 2, 1, 4, 2, 220, 200, 160, 255);
|
||||
fill_rect(s, W - 9, 1, 8, 10, ok, og, ob, 255);
|
||||
fill_rect(s, W - 8, 2, 6, 8, 190, 170, 135, 255);
|
||||
fill_rect(s, W - 7, 1, 4, 2, 215, 195, 155, 255);
|
||||
fill_rect(s, W/2 - 2, H - 4, 4, 2, 55, 48, 38, 255); /* threshold */
|
||||
/* thick merlons + caps + 4th tooth */
|
||||
fill_rect(s, 1, 1, 7, 10, ok, og, ob, 255);
|
||||
fill_rect(s, 2, 2, 5, 8, 195, 175, 140, 255);
|
||||
fill_rect(s, 3, 1, 3, 2, 220, 200, 160, 255); /* merlon cap L */
|
||||
fill_rect(s, W/2 - 5, 1, 4, 9, ok, og, ob, 255); /* merlon mid-L */
|
||||
fill_rect(s, W/2 - 4, 2, 2, 7, 200, 180, 145, 255);
|
||||
fill_rect(s, W/2 - 1, 1, 7, 10, ok, og, ob, 255);
|
||||
fill_rect(s, W/2, 2, 5, 8, 200, 180, 145, 255);
|
||||
fill_rect(s, W/2 + 1, 1, 3, 2, 220, 200, 160, 255); /* merlon cap mid */
|
||||
fill_rect(s, W - 8, 1, 7, 10, ok, og, ob, 255);
|
||||
fill_rect(s, W - 7, 2, 5, 8, 190, 170, 135, 255);
|
||||
fill_rect(s, W - 6, 1, 3, 2, 215, 195, 155, 255); /* merlon cap R */
|
||||
fill_rect(s, 2, 10, W - 4, 3, 215, 195, 155, 255); /* coping */
|
||||
fill_rect(s, 2, 11, W - 4, 1, 120, 105, 80, 255); /* coping shadow */
|
||||
/* buttresses */
|
||||
fill_rect(s, 4, 9, 2, 2, 180, 160, 125, 255); /* coping bolt L */
|
||||
fill_rect(s, W - 6, 9, 2, 2, 180, 160, 125, 255); /* coping bolt R */
|
||||
/* buttresses + mid pier */
|
||||
fill_rect(s, 0, H/2 - 2, 4, H/2, ok, og, ob, 255);
|
||||
fill_rect(s, 1, H/2, 2, H/2 - 4, 140, 125, 95, 255);
|
||||
fill_rect(s, W - 4, H/2 - 2, 4, H/2, ok, og, ob, 255);
|
||||
fill_rect(s, W - 3, H/2, 2, H/2 - 4, 140, 125, 95, 255);
|
||||
/* block seams + dual slits */
|
||||
line(s, 2, H/2 + 2, W - 2, H/2 + 2, 55, 48, 38, 255);
|
||||
fill_rect(s, W/2 - 2, H/2 + 4, 4, H/2 - 8, ok, og, ob, 255); /* mid pier */
|
||||
fill_rect(s, W/2 - 1, H/2 + 5, 2, H/2 - 10, 130, 115, 88, 255);
|
||||
/* gate arch + door + hinges */
|
||||
fill_rect(s, W/2 - 4, H/2 + 2, 8, H/2 - 6, 45, 38, 30, 255); /* gate recess */
|
||||
fill_rect(s, W/2 - 3, H/2 + 3, 6, H/2 - 8, 55, 48, 38, 255); /* door */
|
||||
fill_rect(s, W/2 - 2, H/2 + 4, 4, 3, 35, 30, 24, 255); /* gate grate */
|
||||
fill_rect(s, W/2 - 4, H/2 + 2, 1, H/2 - 8, 90, 80, 60, 255); /* hinge L */
|
||||
fill_rect(s, W/2 + 3, H/2 + 2, 1, H/2 - 8, 90, 80, 60, 255); /* hinge R */
|
||||
fill_rect(s, W/2 - 1, H - 8, 2, 2, 200, 180, 80, 255); /* lock plate */
|
||||
/* embrasures + slits + scars */
|
||||
fill_rect(s, W/2 - 2, H/2 - 4, 4, 5, 35, 30, 24, 255); /* embrasure */
|
||||
fill_rect(s, W/2 - 1, H/2 - 2, 2, 3, 20, 18, 14, 255);
|
||||
fill_rect(s, W/4 - 1, H/2 - 1, 3, 5, 40, 35, 28, 255); /* side slit L */
|
||||
fill_rect(s, 3 * W/4 - 1, H/2 - 1, 3, 5, 40, 35, 28, 255); /* side slit R */
|
||||
fill_rect(s, 5, H/2 + 8, 3, 2, 100, 70, 50, 255); /* blast scar L */
|
||||
fill_rect(s, W - 8, H/2 + 7, 4, 2, 95, 65, 45, 255); /* blast scar R */
|
||||
fill_rect(s, 3, H - 3, 4, 2, 80, 70, 55, 255); /* rubble L */
|
||||
fill_rect(s, W - 7, H - 3, 4, 2, 80, 70, 55, 255); /* rubble R */
|
||||
fill_rect(s, W/2 + 5, H/2 + 10, 2, 2, 60, 52, 40, 255); /* chip */
|
||||
line(s, 2, H/2 + 1, W - 2, H/2 + 1, 55, 48, 38, 255);
|
||||
line(s, 2, H/2 + 6, W - 2, H/2 + 6, 75, 65, 50, 255);
|
||||
line(s, W/3, 8, W/3, H - 4, 65, 55, 42, 255);
|
||||
line(s, 2 * W/3, 8, 2 * W/3, H - 4, 65, 55, 42, 255);
|
||||
fill_rect(s, W/2 - 2, H/2 - 2, 4, 8, 35, 30, 24, 255); /* embrasure */
|
||||
fill_rect(s, W/2 - 1, H/2, 2, 4, 20, 18, 14, 255);
|
||||
fill_rect(s, W/4 - 1, H/2 + 1, 3, 5, 40, 35, 28, 255); /* side slit */
|
||||
fill_rect(s, 3 * W/4 - 1, H/2 + 1, 3, 5, 40, 35, 28, 255);
|
||||
line(s, 4, H - 7, W - 4, H - 7, 50, 42, 32, 255); /* plinth seam */
|
||||
disc(s, 6, H/2 + 10, 1, 70, 55, 40, 255); /* pock L */
|
||||
disc(s, W - 6, H/2 + 9, 1, 70, 55, 40, 255); /* pock R */
|
||||
break;
|
||||
case BT_REPAIR:
|
||||
/* dense garage: pad, hull, bay/lift, tool rack, crane, crates (KKND depot) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue