I’ve recently started learning flutter for school and now it’s time for the final project – I decided to do something similar to Pou. I have my different rooms responsible for eating, cleaning, etc. And here comes my problem: in the original Pou there were stats that lowered over time. When you came back to your game after 8 hours your Pou would be hungry, etc. I’m trying to implement that into my own game.
I don’t want any code solutions, just an idea of how that would even be implemented. I was thinking maybe it was possible to store the app-closing time, and calculate the new hunger stat- when the app opens again, taking the app-opening time and doing something with that. I’m using flame and plan to add hive, because that’s what we did before. Is there a better way to do this?
Agata Aga is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.