"args" vs. notifications & DB question.

Game development with Board Game Arena Studio
Post Reply
User avatar
phil_s_stein
Posts: 8
Joined: 31 October 2011, 19:38

"args" vs. notifications & DB question.

Post by phil_s_stein »

I'm just getting started on BGA development and I have a few questions.

- When updating a page due to a user action, when should you use the state "args" and when should you use the dojo notifications? Or are they separate things for different purposes?
- I'm thinking of putting the 'current valid moves' and 'last move taken' in the database. When the player makes a move, computes this, then adds it to the database. My thinking is that if there is a disruption, it is then easy to redisplay this: just make this part of the game state so the js setup(gamedatas) function will display it automatically. Is this a good idea or not?

Thanks.
User avatar
pikiou
Posts: 389
Joined: 03 October 2011, 05:36

Re: "args" vs. notifications & DB question.

Post by pikiou »

Hi phil, welcome in BGA Studio ^^

The state "args" is there to prepare the interface to listen for active user action choices.
A "dojo notification" is meant to show the visible consequences of a chosen action.

You'll find way more in these presentations: http://en.doc.boardgamearena.com/Studio ... sentations
Post Reply

Return to “Developers”