daniu54 / earie-treasures

A 2d top-down loot-em-up with horror and stealth elements
0 stars 0 forks source link

Implement breadcrumbs #27

Open Abb4 opened 1 year ago

Abb4 commented 1 year ago

In #24 an idea of breadcrumbs was mentioned as a way to handle AI "memory" of where the player was at the last time. One special breadcrumb could be the Last-Known-Position" (short: LKP).

My idea was that we could design the breadcrumbs as nodes that are "spawned" by the player node when they leave the enemy vision cone a final breadcrumb is spawned as the LKP. These breadcrumbs are only visible to the chasing enemy of course. Thus we only really need one bread crumb and just make the enemy navigate towards the player if the enemy sees them. But I would not be opposed to implement an Array of breadcrumbs, maybe we could use that for something fancier in the future. So here is my idea broken down:

This is just a proposal, feel free to leave feedback or close issue as not planned if you want to implement it differenty

Abb4 commented 1 year ago

Will probably be implemented as a followup of https://github.com/Abb4/earie-treasures/issues/10