light speed #10

Open
opened 2025-01-18 13:33:02 +00:00 by unusualevent · 2 comments
Owner

Could also introduce a kind of "light speed" that shows items ~4 squares away as they were one turn ago?

For example a piece that had just moved into the line of sight last turn at 4 spaces might not be visible? And a piece 8 away that moved two turns ago would just barely be visible?

Would need to store a map of past state in the naive approach a few steps back? Depending on which way they're facing?

Or reduce the compute space by checking only from angles a player is looking? Hmmm

Could also introduce a kind of "light speed" that shows items ~4 squares away as they were one turn ago? For example a piece that had just moved into the line of sight last turn at 4 spaces might not be visible? And a piece 8 away that moved two turns ago would just barely be visible? Would need to store a map of past state in the naive approach a few steps back? Depending on which way they're facing? Or reduce the compute space by checking only from angles a player is looking? Hmmm
Author
Owner

Possibly keep track of X previous moves (where X is the width of the map / 4, and rewind any environmental change, as if it's a game of Snake?

Might be able to optimize if the player is halfway across the map to only keep half those moves, if they're on one side of the map you would need the full length.

Possibly keep track of X previous moves (where X is the width of the map / 4, and rewind any environmental change, as if it's a game of Snake? Might be able to optimize if the player is halfway across the map to only keep half those moves, if they're on one side of the map you would need the full length.
Author
Owner

Strictly speaking is the move calculation based on the furthest player closest to the edge with the longest calculation? Or can you compute how much light rays to keep around separate for each player?

Strictly speaking is the move calculation based on the furthest player closest to the edge with the longest calculation? Or can you compute how much light rays to keep around separate for each player?
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: misc/dungeoncrawl#10
No description provided.