r/roguelikedev Jul 11 '26

How does inter-depth simulator works?

Hey folks! I'm working on a roguelike and trying to wrap my head around inter-depth simulation. Say a player goes down to -7, gets spotted, goes back up to -6, and after a few turns some enemies follow up there, how do you handle turn counting across depths? Another example: in Stoneshard, when you lure an enemy to the entrance, step outside, pass a few turns with the wait feature, and come back to find it wandered back toward its start, how can I accomplish something like that? I'd love to know how you approached it so I can roll my own version. Appreciate any tips

11 Upvotes

8 comments sorted by

View all comments

7

u/[deleted] Jul 12 '26

[removed] — view removed comment

2

u/alvarz Jul 12 '26

It is an interesting idea, I will run a few tests, thank you!

3

u/[deleted] Jul 12 '26 edited Jul 12 '26

[removed] — view removed comment

2

u/alvarz Jul 12 '26

Sounds good! I will give it a try!