From ededb2cd8a0d304303fd6f716f5dab7cfba69c97 Mon Sep 17 00:00:00 2001 From: CharlesGarrocho Date: Tue, 18 Feb 2014 14:53:20 -0300 Subject: [PATCH] =?UTF-8?q?adicionado:=20verifica=C3=A7=C3=A3o=20de=20toqu?= =?UTF-8?q?e=20na=20tela=20para=20salto=20no=20jogo.=20#19?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jogo/assets/js/Jogo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jogo/assets/js/Jogo.js b/jogo/assets/js/Jogo.js index b9fbb7f..39b5103 100644 --- a/jogo/assets/js/Jogo.js +++ b/jogo/assets/js/Jogo.js @@ -102,7 +102,7 @@ BasicGame.Jogo.prototype = { this.fundo3.tilePosition.x -= this.velocidade[2]; this.jogador.body.velocity.x = 0; this.jogador.body.velocity.y = 0; - + if (this.AGACHAR) { if ((this.cursors.down.isDown && !this.pulando) || (this.conexao.movimento === -1 && !this.pulando)) { @@ -124,7 +124,7 @@ BasicGame.Jogo.prototype = { } } - if ((this.cursors.up.isDown && !this.pulando && !this.agachado) || (this.conexao.movimento === 1 && !this.pulando && !this.agachado)) + if ((this.input.activePointer.isDown && !this.pulando) || (this.cursors.up.isDown && !this.pulando && !this.agachado) || (this.conexao.movimento === 1 && !this.pulando && !this.agachado)) { this.som_pulo.play(); this.contador_pulo+=0.15;