-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
No tutorial está faltando o último else:
function update () {
// controle pelas setas esquerda direita cima e baixo do teclado
if (cursors.left.isDown) {
hamtaro.x -= 3
hamtaro.anims.play('esquerda', true)
} else if (cursors.right.isDown) {
hamtaro.x += 3
hamtaro.anims.play('direita', true)
} else if (cursors.up.isDown) {
hamtaro.y -= 2
hamtaro.anims.play('baixo', true)
} else if (cursors.down.isDown) {
hamtaro.y += 2
hamtaro.anims.play('cima', true)
} else {
hamtaro.anims.play('parado', true)
}
}
Metadata
Metadata
Assignees
Labels
No labels