Ability to draw visuals on the map view (not just room view)
-
So negative values would be allowed then.
Yeah that would work too and integers are far easier to handle.
-
I wholeheartedly support this idea!
-
@wtfrank honestly I think it's easier to keep working with
RoomPosition
.Since they already include
x
,y
androomName
they are mappable 1:1 to squares in the map view.
-
@keenathar yes easier but not really efficient since it is a object that takes time to parse making it a int saves a lot of time.
-
@mrfaul @wtfrank strings as map coordinates have the advantage of being always accurate. Using floating point arithmetic for that purpose will introduce rounding errors. Especially because 0.02 has no finite binary and therefore no exact IEEE-754 representation.
-
I'd favor rooms having their own int coordinate systems.
-
Regardless of implementation, this suggestion seems to be popular. I haven't seen anyone protest.
I'm really hoping for an official reply from the devs
-
- map overlay to show which enemy rooms are in range of nukes, how many nukes they're in range of, and whether your nukes are on cooldown.
-
I think it would be great to have a map visuals API. Since there isn't one yet, to be able to see the intel my scouts collect, I created this: https://github.com/eduter/render-intel-map
It has 3 out of the box and 2 and 5 would not be difficult to implement, using the callbacks. 1 and 4 would be more difficult, because everything is, currently, rendered per room and those would require visuals starting in one room and ending in another. A PR to fix that would be welcome
-
- map overlay to sketch approximate borders around players' or alliances' empires