added item chests, audio and deployment

Signed-off-by: Pascal Syma <pascal@syma.dev>
This commit is contained in:
2020-07-16 20:51:24 +02:00
parent 0004849110
commit 7559a3f40a
27 changed files with 237 additions and 36 deletions
+5
View File
@@ -49,8 +49,13 @@ export default class GUI extends Phaser.Scene {
new Player(this, s, 'char' + charKey).play('idle' + charKey, true)
.setInteractive()
.on('pointerover', () => {
this.sound.play('menu_hover', {volume: 0.3});
})
.on('pointerdown', () => {
this.sound.play('menu_click', {volume: 0.5});
if (this.textures.exists('char'))
this.textures.removeKey('char');