added item chests, audio and deployment
Signed-off-by: Pascal Syma <pascal@syma.dev>
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user