Fixing warning on character selection

This commit is contained in:
David Négrier 2020-06-02 15:57:11 +02:00
parent f151a37da9
commit 2dc682ea72

View File

@ -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({