OmarAlghamdi / walkly-android

Android implementation of Walkly (the walking game)
0 stars 1 forks source link

stamina points do not appear on map load #54

Closed OmarAlghamdi closed 4 years ago

OmarAlghamdi commented 4 years ago

stamina circles appears after 36 seconds of app load because it listens to stamina updates but does not pull the value on loading

solution is simple update the onViewCreated function to pull the stamina from player object

OmarAlghamdi commented 4 years ago

it is solved on singleton-player branch. I had to make use of singleton pattern to make it easier to access player's data (in this case stamina) from any class easily.