engine-c: denser UT_MEDIC van silhouette sprites↔snapshot
This commit is contained in:
parent
f910c2ee3b
commit
4c2a74b333
2 changed files with 58 additions and 16 deletions
|
|
@ -547,22 +547,44 @@ static void draw_unit(Unit *u, int sx, int sy) {
|
||||||
disc(LX(29,5), LY(29,5), SI(2), 255, 140, 90);
|
disc(LX(29,5), LY(29,5), SI(2), 255, 140, 90);
|
||||||
break;
|
break;
|
||||||
case UT_MEDIC:
|
case UT_MEDIC:
|
||||||
/* white van + thick red cross + hubbed wheels + light bar */
|
/* bumper + grille + lights + door/side + mirrors + exhaust + light-bar + stretcher/cross + hubs */
|
||||||
fill_rect(sx-SI(10), sy-SI(5), SI(20), SI(15), ok, og, ob);
|
fill_rect(sx-SI(10), sy-SI(5), SI(20), SI(15), ok, og, ob);
|
||||||
fill_rect(sx-SI(8), sy-SI(3), SI(16), SI(11), 245, 245, 245);
|
fill_rect(sx-SI(8), sy-SI(3), SI(16), SI(11), 245, 245, 245);
|
||||||
fill_rect(LX(7,10)-SI(1), LY(7,10)-SI(1), SI(6), SI(4), 200, 220, 240);
|
fill_rect(sx-SI(7), sy-SI(2), SI(14), SI(9), 255, 255, 255);
|
||||||
fill_rect(LX(12,6)-SI(2), LY(12,6)-1, SI(8), SI(2), 240, 50, 50); /* light bar */
|
fill_rect(LX(2,13)-SI(1), LY(2,13)-SI(1), SI(3), SI(6), 55, 50, 40); /* bumper */
|
||||||
disc(LX(10,24), LY(10,24), SI(5), ok, og, ob);
|
fill_rect(LX(3,14)-SI(1), LY(3,14)-1, SI(1), SI(4), 90, 80, 55);
|
||||||
disc(LX(20,24), LY(20,24), SI(5), ok, og, ob);
|
fill_rect(LX(4,14)-SI(1), LY(4,14)-1, SI(3), SI(4), 40, 38, 32); /* grille */
|
||||||
disc(LX(10,24), LY(10,24), SI(4), mr, mg, mb);
|
line(LX(4,15), LY(4,15), LX(6,15), LY(6,15), 70, 65, 55);
|
||||||
disc(LX(20,24), LY(20,24), SI(4), mr, mg, mb);
|
line(LX(4,17), LY(4,17), LX(6,17), LY(6,17), 70, 65, 55);
|
||||||
disc(LX(10,24), LY(10,24), SI(2), 90, 85, 75);
|
disc(LX(4,12), LY(4,12), SI(2), 220, 200, 80); /* headlight L */
|
||||||
disc(LX(20,24), LY(20,24), SI(2), 90, 85, 75);
|
disc(LX(4,20), LY(4,20), SI(2), 220, 200, 80); /* headlight R */
|
||||||
tyre_mark(LX(10,24), LY(10,24), SI(4), ph, 1);
|
fill_rect(LX(5,8)-SI(1), LY(5,8)-SI(1), SI(7), SI(5), 190, 215, 235); /* cab glass */
|
||||||
tyre_mark(LX(20,24), LY(20,24), SI(4), ph, 1);
|
fill_rect(LX(6,9)-SI(1), LY(6,9)-1, SI(5), SI(3), 160, 190, 220);
|
||||||
disc(LX(15,9), LY(15,9), SI(6), 240, 50, 50);
|
fill_rect(LX(12,12)-SI(1), LY(12,12)-SI(1), SI(2), SI(10), 200, 200, 205); /* side door seam */
|
||||||
fill_rect(LX(14,5)-1, LY(14,5)-SI(4), SI(3), SI(9), 255, 255, 255);
|
fill_rect(LX(13,13)-SI(1), LY(13,13)-SI(1), SI(1), SI(8), 170, 170, 175);
|
||||||
fill_rect(LX(11,8)-SI(4), LY(11,8)-1, SI(9), SI(3), 255, 255, 255);
|
fill_rect(LX(20,13)-SI(1), LY(20,13)-SI(1), SI(4), SI(8), 230, 230, 235); /* rear panel */
|
||||||
|
fill_rect(LX(21,14)-SI(1), LY(21,14)-SI(1), SI(2), SI(6), 210, 210, 215);
|
||||||
|
fill_rect(LX(4,10)-SI(1), LY(4,10)-1, SI(2), SI(2), 50, 48, 42); /* mirror L */
|
||||||
|
fill_rect(LX(4,20)-SI(1), LY(4,20)-1, SI(2), SI(2), 50, 48, 42); /* mirror R */
|
||||||
|
fill_rect(LX(24,18)-SI(1), LY(24,18)-1, SI(3), SI(2), 40, 38, 32); /* exhaust */
|
||||||
|
fill_rect(LX(25,17)-SI(1), LY(25,17)-1, SI(2), SI(1), 70, 65, 55);
|
||||||
|
fill_rect(LX(8,3)-SI(1), LY(8,3)-1, SI(14), SI(3), 240, 40, 40); /* light bar */
|
||||||
|
fill_rect(LX(10,2)-SI(1), LY(10,2)-1, SI(10), SI(2), 255, 80, 80);
|
||||||
|
fill_rect(LX(11,1)-SI(1), LY(11,1)-1, SI(3), SI(2), 255, 220, 80); /* amber beacon */
|
||||||
|
fill_rect(LX(16,1)-SI(1), LY(16,1)-1, SI(3), SI(2), 80, 180, 255); /* blue beacon */
|
||||||
|
fill_rect(LX(18,11)-SI(1), LY(18,11)-1, SI(6), SI(3), 200, 40, 40); /* stretcher cue */
|
||||||
|
fill_rect(LX(19,12)-SI(1), LY(19,12)-1, SI(4), SI(1), 255, 200, 200);
|
||||||
|
disc(LX(9,24), LY(9,24), SI(5), ok, og, ob);
|
||||||
|
disc(LX(21,24), LY(21,24), SI(5), ok, og, ob);
|
||||||
|
disc(LX(9,24), LY(9,24), SI(4), mr, mg, mb);
|
||||||
|
disc(LX(21,24), LY(21,24), SI(4), mr, mg, mb);
|
||||||
|
disc(LX(9,24), LY(9,24), SI(2), 90, 85, 75);
|
||||||
|
disc(LX(21,24), LY(21,24), SI(2), 90, 85, 75);
|
||||||
|
tyre_mark(LX(9,24), LY(9,24), SI(4), ph, 1);
|
||||||
|
tyre_mark(LX(21,24), LY(21,24), SI(4), ph, 1);
|
||||||
|
disc(LX(15,10), LY(15,10), SI(7), 230, 35, 35);
|
||||||
|
fill_rect(LX(13,4)-SI(1), LY(13,4)-SI(1), SI(4), SI(12), 255, 255, 255);
|
||||||
|
fill_rect(LX(9,8)-SI(1), LY(9,8)-SI(1), SI(12), SI(4), 255, 255, 255);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
disc(sx, sy, SI(10), ok, og, ob);
|
disc(sx, sy, SI(10), ok, og, ob);
|
||||||
|
|
|
||||||
|
|
@ -454,13 +454,33 @@ SDL_Texture *sprites_make_unit(SDL_Renderer *r, UnitType t, Faction f) {
|
||||||
disc(s, 29, 5, 2, 255, 140, 90, 255);
|
disc(s, 29, 5, 2, 255, 140, 90, 255);
|
||||||
break;
|
break;
|
||||||
case UT_MEDIC:
|
case UT_MEDIC:
|
||||||
/* white van + light bar + bold red cross + hubs (read at live scale) */
|
/* bumper + grille + lights + door/side + mirrors + exhaust + light-bar + stretcher/cross + hubs */
|
||||||
fill_rect(s, 3, 9, 24, 17, ok, og, ob, 255);
|
fill_rect(s, 3, 9, 24, 17, ok, og, ob, 255);
|
||||||
fill_rect(s, 5, 11, 20, 13, 245, 245, 245, 255);
|
fill_rect(s, 5, 11, 20, 13, 245, 245, 245, 255);
|
||||||
fill_rect(s, 6, 12, 18, 11, 255, 255, 255, 255);
|
fill_rect(s, 6, 12, 18, 11, 255, 255, 255, 255);
|
||||||
|
fill_rect(s, 2, 13, 3, 6, 55, 50, 40, 255); /* bumper */
|
||||||
|
fill_rect(s, 3, 14, 1, 4, 90, 80, 55, 255);
|
||||||
|
fill_rect(s, 4, 14, 3, 4, 40, 38, 32, 255); /* grille */
|
||||||
|
line(s, 4, 15, 6, 15, 70, 65, 55, 255);
|
||||||
|
line(s, 4, 17, 6, 17, 70, 65, 55, 255);
|
||||||
|
disc(s, 4, 12, 2, 220, 200, 80, 255); /* headlight L */
|
||||||
|
disc(s, 4, 20, 2, 220, 200, 80, 255); /* headlight R */
|
||||||
fill_rect(s, 5, 8, 7, 5, 190, 215, 235, 255); /* cab glass */
|
fill_rect(s, 5, 8, 7, 5, 190, 215, 235, 255); /* cab glass */
|
||||||
fill_rect(s, 8, 3, 14, 3, 240, 40, 40, 255); /* light bar */
|
fill_rect(s, 6, 9, 5, 3, 160, 190, 220, 255);
|
||||||
|
fill_rect(s, 12, 12, 2, 10, 200, 200, 205, 255); /* side door seam */
|
||||||
|
fill_rect(s, 13, 13, 1, 8, 170, 170, 175, 255);
|
||||||
|
fill_rect(s, 20, 13, 4, 8, 230, 230, 235, 255); /* rear panel */
|
||||||
|
fill_rect(s, 21, 14, 2, 6, 210, 210, 215, 255);
|
||||||
|
fill_rect(s, 4, 10, 2, 2, 50, 48, 42, 255); /* mirror L */
|
||||||
|
fill_rect(s, 4, 20, 2, 2, 50, 48, 42, 255); /* mirror R */
|
||||||
|
fill_rect(s, 24, 18, 3, 2, 40, 38, 32, 255); /* exhaust */
|
||||||
|
fill_rect(s, 25, 17, 2, 1, 70, 65, 55, 255);
|
||||||
|
fill_rect(s, 8, 3, 14, 3, 240, 40, 40, 255); /* light bar */
|
||||||
fill_rect(s, 10, 2, 10, 2, 255, 80, 80, 255);
|
fill_rect(s, 10, 2, 10, 2, 255, 80, 80, 255);
|
||||||
|
fill_rect(s, 11, 1, 3, 2, 255, 220, 80, 255); /* amber beacon */
|
||||||
|
fill_rect(s, 16, 1, 3, 2, 80, 180, 255, 255); /* blue beacon */
|
||||||
|
fill_rect(s, 18, 11, 6, 3, 200, 40, 40, 255); /* stretcher cue */
|
||||||
|
fill_rect(s, 19, 12, 4, 1, 255, 200, 200, 255);
|
||||||
disc(s, 9, 24, 5, ok, og, ob, 255);
|
disc(s, 9, 24, 5, ok, og, ob, 255);
|
||||||
disc(s, 21, 24, 5, ok, og, ob, 255);
|
disc(s, 21, 24, 5, ok, og, ob, 255);
|
||||||
disc(s, 9, 24, 4, tr, tg, tb, 255);
|
disc(s, 9, 24, 4, tr, tg, tb, 255);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue