Prev: 81BB Up: Map Next: 81BE
81BD: Searchlight state
This is set to searchlight_STATE_SEARCHING ($FF) when the hero is being searched for. It's set to searchlight_STATE_CAUGHT ($1F) when the hero is caught in the searchlight. Otherwise it's set to ($00..$1E) when the hero has evaded the searchlight.
Used by the routines at nighttime, plot_sprites.
Value Meaning
255 Searching
31 Caught the hero
0..30 Tracking the hero
searchlight_state 81BD DEFB $04
Prev: 81BB Up: Map Next: 81BE