From: David NĂ©grier Date: Tue, 2 Jun 2020 13:57:11 +0000 (+0200) Subject: Fixing warning on character selection X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2dc682ea7203f171bd88a119882b4efcb2d1c1cc;p=libreadventure.git Fixing warning on character selection --- diff --git a/front/src/Phaser/Login/SelectCharacterScene.ts b/front/src/Phaser/Login/SelectCharacterScene.ts index 98b5262..8a52afc 100644 --- a/front/src/Phaser/Login/SelectCharacterScene.ts +++ b/front/src/Phaser/Login/SelectCharacterScene.ts @@ -168,7 +168,7 @@ export class SelectCharacterScene extends Phaser.Scene { let row = Math.floor(i / this.nbCharactersPerRow); let [x, y] = this.getCharacterPosition(col, row); - let player = this.physics.add.sprite(x, y, playerResource.name, playerResource.name); + let player = this.physics.add.sprite(x, y, playerResource.name, 0); player.setBounce(0.2); player.setCollideWorldBounds(true); this.anims.create({