-3
Игра: onClick startbutton> mathrandom для первого игрока, который начинает игру. 4 Фотографии 2 игрока> player1 и player2. другой 2> Вращение игрока.Сменить игрока в javascript игре
нужна помощь: на кнопку мыши> Следующий игрок включить
function game(){
var PlayerTurn;
PlayerTurn=parseInt(Math.random()*2);
if(PlayerTurn==0){PlayerTurn=1;window.document.player1.src="Cache/Player3.PNG";}
else{PlayerTurn=0;window.document.player2.src="Cache/Player4.PNG";}
}
Любая помощь приветствуется.
Итак, что здесь происходит? –