sound and other misc fixes

This commit is contained in:
Your Name 2026-08-12 12:27:52 -04:00
parent 38eaba2fa6
commit 176216df8e
6 changed files with 97 additions and 15 deletions

View file

@ -707,6 +707,7 @@ function World:movePlayer(room, key)
current[color] = player:getGridPos()
end
if moved then
if Sound then Sound.play("playerMove") end
self:markDirty(room)
self:playerJoinCheck(room, previous, current)
self:tick(room)
@ -811,6 +812,7 @@ function World:nextRoom(room, pos)
elseif pos.y > gridHeight then exit, entry.y = "bottom", 1
elseif pos.y < 1 then exit, entry.y = "top", gridHeight end
local nextName = self:getNeighbor(room.name, exit) or room.name
if Sound and nextName ~= room.name then Sound.play("levelChange") end
local sourceLocation = self:roomLocation(room.name)
local destinationLocation = self:roomLocation(nextName)
local activeColors = room:getActiveColors()