updatePlayerPosition tries to access viking but it was initiated as a local var.
var viking = skin(game.THREE, 'viking.png')
In earlier versions, viking was in the global scope and was a property of window. To fix, I've added viking as a property to game. Sending a pull request.
updatePlayerPosition tries to access viking but it was initiated as a local var.
var viking = skin(game.THREE, 'viking.png')
In earlier versions, viking was in the global scope and was a property of window. To fix, I've added viking as a property to game. Sending a pull request.