Merge pull request #144 from moufmouf/fix_warning_on_character_select

Fixing warning on character selection
This commit is contained in:
David Négrier 2020-06-02 16:00:05 +02:00 committed by GitHub
commit dc8481c6a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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