From d51462abd4a8b2473dbbfed31b3ca6b06d03b592 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20N=C3=A9grier?= Date: Mon, 11 May 2020 19:19:42 +0200 Subject: [PATCH] Fixing typo --- front/src/Phaser/Entity/PlayableCaracter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/Phaser/Entity/PlayableCaracter.ts b/front/src/Phaser/Entity/PlayableCaracter.ts index c258a9f..a5f6375 100644 --- a/front/src/Phaser/Entity/PlayableCaracter.ts +++ b/front/src/Phaser/Entity/PlayableCaracter.ts @@ -46,7 +46,7 @@ export class PlayableCaracter extends Phaser.Physics.Arcade.Sprite { this.scene.physics.world.enableBody(this); this.setImmovable(true); this.setCollideWorldBounds(true); - this.setSize(16, 16); //edit the hitbox to better match the caracter model + this.setSize(16, 16); //edit the hitbox to better match the character model this.setOffset(8, 16); this.setDepth(-1); } @@ -55,7 +55,7 @@ export class PlayableCaracter extends Phaser.Physics.Arcade.Sprite { this.setVelocity(x, y); - //up or down animationss are prioritized over left and right + // up or down animations are prioritized over left and right if (this.body.velocity.y < 0) { //moving up this.play(`${this.PlayerTexture}-${PlayerAnimationNames.WalkUp}`, true); } else if (this.body.velocity.y > 0) { //moving down -- 2.25.1