Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 214 Bytes

07_colors.md

File metadata and controls

10 lines (7 loc) · 214 Bytes

Jhack (giacgbj)

var player = map.getPlayer();
player.turn = player.turn === undefined ? 0 : player.turn+1;
colors=['#f00','#ff0','#0f0','#f00','#ff0'];
player.setColor(colors[player.turn]);