add play sound on player add
This commit is contained in:
parent
3b71d0b3ed
commit
4fe193ec26
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,8 @@ extends Node
|
|||
var keywhitelist
|
||||
#var playeroverridecolors
|
||||
|
||||
@onready var sfx: Node = $SFX
|
||||
|
||||
var keyHolddownQueue = {}
|
||||
|
||||
const KEY_HOLDDOWN_TO_ENTER_TIME=500 #in milliseconds
|
||||
|
@ -94,6 +96,9 @@ func _process(delta: float) -> void:
|
|||
#if keywhitelist.has(event.keycode) or keywhitelist.size()<1: #is key whitelisted?
|
||||
print("Key added. keycode:"+str(queuedKey))
|
||||
var addedID=Gamestate.addPlayer(queuedKey)
|
||||
|
||||
sfx.playAddPlayerSound()
|
||||
|
||||
|
||||
$MenuDisplay.update_playerlist(Gamestate.players,queuedKey,"explode")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue