Page 1 of 1
setup extra copy
Posted: 20 April 2013, 22:37
by garcia1968
Referencing the reversi tutorial with my game(isaac), when I addTokenToBoard from the setup method, I get an extra copy token that never gets moved from the div 0x0 position. The extra copy seems to be created on the dojo.place method.
Thanks
Re: setup extra copy
Posted: 21 April 2013, 04:25
by garcia1968
Fixed, I was getting a token copy because in the setup routine in my game.js I had it within the below loop for both players
Code: Select all
for( var player_id in gamedatas.players )
{
Moving this to after that loop fixed that problem and using this.player_id allowed me to set the pieces for each corresponding player view.