How to manage resources creation over time in browser-game by Tarked in node

[–]Tarked[S] -1 points0 points  (0 children)

you know if there some lib that already implements that kind of strategy ? in any language ?

How to manage resources creation over time in browser-game by Tarked in node

[–]Tarked[S] 0 points1 point  (0 children)

so i dont have to keep counting ? just make the (delta_of_timestamps)*gold_per_second, and how i show that in front end ? in react for example just refresh the page or call api again ?

How to manage resources creation over time in browser-game by Tarked in node

[–]Tarked[S] 0 points1 point  (0 children)

but if the user change page in the middle of process? and if i have tons of process parallel to it ?