Tim2othy / spacegame

2 stars 1 forks source link

RADAR like detection ability instead of knowing everything #44

Open Tim2othy opened 2 months ago

Tim2othy commented 2 months ago

Give ships the ability to scan space using RADAR/LIDAR.

Simplest form would be that the minimap doesn't show enemy ships per default. But at any point in time the player can press a key to scan the surrounding area. Then, all ships, in some large radius that aren't behind a planet or asteroid, are marked on the minimap.

But they all also know where you are.

If we implement this feature, it should also be integrated into the enemy AI #10. So, they only know where the player is once they are close or have used their radar/the player used his radar.

These seem like good resources https://www.projectrho.com/public_html/rocket/spacewardetect.php

https://toughsf.blogspot.com/2018/04/permanent-and-perfect-stealth-in-space.html

lumi-a commented 2 months ago

Rather than having the player press a key, could we just have it running the entire time? That'd be less annoying.

We could add a radar that periodically sweeps the surrounding area, yeah. For a lower-hanging fruit, we could just make the minimap cover a smaller area than the entire universe.

Tim2othy commented 2 months ago

yeah, just having a smaller minimap, or enemies just being shown on the minimap if they are in a certain radius of the player seems good enough.