Merge pull request #59 from thecodingmachine/map-v0

Map v0: Resize chunksize from 16 to 32 pixels
This commit is contained in:
David Négrier 2020-04-27 18:22:24 +02:00 committed by GitHub
commit cdd18fd5ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 556 additions and 91 deletions

View file

@ -10,7 +10,7 @@ export class PlayableCaracter extends Phaser.Physics.Arcade.Sprite {
this.scene.sys.updateList.add(this);
this.scene.sys.displayList.add(this);
this.setScale(2);
//this.setScale(2);
this.scene.physics.world.enableBody(this);
this.setImmovable(true);
this.setCollideWorldBounds(true);
@ -45,7 +45,7 @@ export class PlayableCaracter extends Phaser.Physics.Arcade.Sprite {
this.setVelocity(0, 0);
this.play(PlayerAnimationNames.None, true);
}
say(text: string) {
if (this.bubble) return;
this.bubble = new SpeechBubble(this.scene, this, text)
@ -55,4 +55,4 @@ export class PlayableCaracter extends Phaser.Physics.Arcade.Sprite {
this.bubble = null;
}, 3000)
}
}
}