feat: add sfx when entering/leaving menu

This commit is contained in:
Kazhnuz 2021-04-23 11:00:09 +02:00
parent 29eb2b5eb1
commit 8abd42b020

View file

@ -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