diff --git a/src/jugando.js b/src/jugando.js index 7083cf9..59bd4b0 100644 --- a/src/jugando.js +++ b/src/jugando.js @@ -18,12 +18,12 @@ export function createJugandoState() { export function updateJugando(juego, dt) { juego.state.velocity.x = 0 if (juego.keyboard.keys.d) { - juego.state.velocity.x += 20 + juego.state.velocity.x += 200 } if (juego.keyboard.keys.a) { - juego.state.velocity.x -= 20 + juego.state.velocity.x -= 200 } - juego.state.pos.x += juego.state.velocity.x + juego.state.pos.x += (dt / 1000) * juego.state.velocity.x } function drawBackground(juego, y, height, img) {