ads-game:: better ship shape handling

This commit is contained in:
Zeno Rogue
2022-09-29 01:39:16 +02:00
parent bcd6d772f6
commit 49ce0c1551
3 changed files with 19 additions and 12 deletions
+1 -3
View File
@@ -223,8 +223,6 @@ void view_ads_game() {
);
if(1) {
make_shape();
set<cell*> visited;
std::priority_queue<cell_to_draw> dq;
auto visit = [&] (cell *c, const ads_matrix& V) {
@@ -278,7 +276,7 @@ void view_ads_game() {
ld u = (invincibility_pt-ship_pt) / ads_how_much_invincibility;
poly_outline = gradient(shipcolor, rsrc_color[rtHull], 0, 0.5 + cos(5*u*TAU), 1);
}
queuepolyat(shiftless(spin(ang*degree) * Id), shShip, shipcolor, PPR::MONSTER_HAIR);
queuepolyat(shiftless(spin(ang*degree) * Id), make_shape(), shipcolor, PPR::MONSTER_HAIR);
poly_outline = 0xFF;
if(view_proper_times) {