feat: add sfx when entering/leaving menu
This commit is contained in:
parent
29eb2b5eb1
commit
8abd42b020
1 changed files with 2 additions and 0 deletions
|
@ -123,8 +123,10 @@ function OverWorld:update(dt)
|
|||
|
||||
if (keys["start"].isPressed and self.canPause) then
|
||||
if (not self.isPaused) then
|
||||
self.assets.sfx["mSelect"]:play()
|
||||
self:pause()
|
||||
else
|
||||
self.assets.sfx["mBack"]:play()
|
||||
self:unpause()
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue