Aatu / FieryVoid

A browser game based on AOGwars
8 stars 12 forks source link

Highlighting ballistics fire #692

Open Zero1627 opened 4 years ago

Zero1627 commented 4 years ago

It would be nice if lines similar to OEW were drawn for incoming ballistic weapons - from launch hex to target, on mouseovering target. They might be bright red, and should show only if target is known (eg. not for hidden target weapons).

Zero1627 commented 2 years ago

see this: BallisticIconContainer.prototype.onZoomEvent = function (payload) { / TODO: lines between launch and target var zoom = payload.zoom; if (zoom <= 0.5) { this.zoomScale = 2 zoom; this.ewIcons.forEach(function(icon){ icon.sprite.setLineWidth(getOEWLineWidth.call(this, icon.amount)); }, this); }else{ this.zoomScale = 1; } */ };

Zero1627 commented 2 years ago

will need to prepare appropriate sprites (with Ballistic section most probably... but maybe EW?) - and then call them up on resize as above (...or with other EW...)

Zero1627 commented 2 years ago

as a stopgap solution - onmouseover incoming ballistics information got information about source as well

EDIT: stopgap implemented!