From 2dc682ea7203f171bd88a119882b4efcb2d1c1cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20N=C3=A9grier?= Date: Tue, 2 Jun 2020 15:57:11 +0200 Subject: [PATCH] Fixing warning on character selection --- front/src/Phaser/Login/SelectCharacterScene.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({ -- 2.25.1