Tweaked missile drawing.
This commit is contained in:
parent
6e703c4f80
commit
cdeea64242
6
nuke.c
6
nuke.c
@ -357,15 +357,15 @@ int main(int argc, char *argv[])
|
|||||||
double k = (t-targeting_time-anticipation)/firing_time;
|
double k = (t-targeting_time-anticipation)/firing_time;
|
||||||
int nuker = mix(rows, targetr, k), nukec = mix(cols/2, targetc, k);
|
int nuker = mix(rows, targetr, k), nukec = mix(cols/2, targetc, k);
|
||||||
attron(COLOR_PAIR(WHITE) | A_BOLD);
|
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);
|
attroff(COLOR_PAIR(WHITE) | A_BOLD);
|
||||||
|
|
||||||
// Draw nuke label
|
// Draw nuke label
|
||||||
attron(COLOR_PAIR(RED));
|
attron(COLOR_PAIR(RED));
|
||||||
mvaddch(nuker-1,nukec+1,'/');
|
mvaddch(nuker-1,nukec-1,'\\');
|
||||||
attroff(COLOR_PAIR(RED));
|
attroff(COLOR_PAIR(RED));
|
||||||
attron(COLOR_PAIR(BLACK_ON_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));
|
attroff(COLOR_PAIR(BLACK_ON_RED));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user