Cataclysmanic / GO2022

4 stars 1 forks source link

Create a stealth system? #57

Closed plexsoup closed 1 year ago

plexsoup commented 1 year ago

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).

plexsoup commented 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.)

plexsoup commented 1 year ago

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.

plexsoup commented 1 year ago

See also: issue #48

plexsoup commented 1 year ago

NPCs have patrol routes and cones of vision now.

All that's left is to make them "hear" noises around them.

plexsoup commented 1 year ago

added issue #95

plexsoup commented 1 year ago

NPCs can hear shots now. Closing this issue.