PKrystian / FiveNightsEscape

An android application utilizing location services to display the user's location on a map. Engage in a thrilling experience where monsters pursue the user in real-time.
MIT License
0 stars 0 forks source link

16-warning-the-user-of-nearby-monsters-add-notification-if-monster-is-near-player #32

Closed AntPog closed 9 months ago

AntPog commented 9 months ago

Added the toast alert, the range of it is set by DEFAULT_ALERT_DISTANCE, currently set to 2.0 (so it triggers when the monster is closer than 2x its range), to do this in the monstercontroller class I passed the context through it