Tweaked missile drawing.

This commit is contained in:
Bruce Hill 2019-01-03 05:49:28 -08:00
parent 6e703c4f80
commit cdeea64242

6
nuke.c
View File

@ -357,15 +357,15 @@ int main(int argc, char *argv[])
double k = (t-targeting_time-anticipation)/firing_time;
int nuker = mix(rows, targetr, k), nukec = mix(cols/2, targetc, k);
attron(COLOR_PAIR(WHITE) | A_BOLD);
mvaddch(nuker, nukec, "=-. "[(int)(k*4.)]);
mvaddch(nuker, nukec, "A^' "[(int)(k*4.)]);
attroff(COLOR_PAIR(WHITE) | A_BOLD);
// Draw nuke label
attron(COLOR_PAIR(RED));
mvaddch(nuker-1,nukec+1,'/');
mvaddch(nuker-1,nukec-1,'\\');
attroff(COLOR_PAIR(RED));
attron(COLOR_PAIR(BLACK_ON_RED));
mvprintw(nuker-2,nukec+2,"%0.3f", (targeting_time + anticipation + firing_time)-t);
mvprintw(nuker-2,nukec-2-5,"%0.3f", (targeting_time + anticipation + firing_time)-t);
attroff(COLOR_PAIR(BLACK_ON_RED));
}