Closed plexsoup closed 1 year ago
Give lights area2d nodes.
Give NPCs last_known_player_location variable. They'll head to wherever they thought the player was. (Good for coin throwing, gunshots, etc.)
If we implement stealth, we will also need to implement a couple of simple NPC routines, because it's strange to watch NPCs stand still waiting for an event.
See also: issue #48
NPCs have patrol routes and cones of vision now.
All that's left is to make them "hear" noises around them.
added issue #95
NPCs can hear shots now. Closing this issue.
If stealth is important to our game, then...
NPCs should have (obvious) vision cones. NPCs should fail to detect player outside their vision cone NPCs should turn toward noises (which gives the player new affordances.. coin toss to make noise) Players should be able to hide if unlit (flashlight, muzzle flash, streetlights should break stealth).