Storing and updating list of possible player's actions
Posted: 21 February 2021, 22:59
Hello.
I came into a problem with managing player actions. Generally speaking how should I store possible actions and check which actions player have made already?
I was thinking about declaring in game.js (in setup) an array to store them and removing each one after player have done it. But there is also a question: will they stay after refreshing the page? Should I made a table in DB and provide it as args for the specific state?
Please let me know your tricks.
Thanks,
Hornir
I came into a problem with managing player actions. Generally speaking how should I store possible actions and check which actions player have made already?
I was thinking about declaring in game.js (in setup) an array to store them and removing each one after player have done it. But there is also a question: will they stay after refreshing the page? Should I made a table in DB and provide it as args for the specific state?
Please let me know your tricks.
Thanks,
Hornir