feat(bunsik): 이웃 가게·손님 방문 멀티플레이, 4개 언어, 설정 창, 마우스 회전, 김밥 해금 효과

- 빈 부지에 NPC 사장님이 운영하는 이웃 가게(크기 제각각), 플레이어가 오면 그 자리를 넘겨줌
- 다른 가게 입구에서 손님으로 앉기: 주인은 2배 값, 손님은 시식 보너스(1분에 한 번)
- 한국어·영어·일본어·중국어(계정 언어 자동 선택), 이름판·메뉴판은 보는 사람 언어로
- 오른쪽 위 언어 버튼을 설정 창으로: 언어, 마우스로 화면 돌리기(PC 기본 켜짐), 효과음
- 메뉴 해금 시 진열대 모형이 생기고 다음 손님이 바로 새 메뉴를 주문
- 통합 테스트 600개 통과

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-12 05:37:46 +09:00
parent c7af87c646
commit 4d861b8fd3
21 changed files with 1464 additions and 135 deletions

View File

@@ -1,4 +1,4 @@
-- 클라이언트 진입점: 화면 UI, 내 조리대 버튼, 튜토리얼 화살표.
-- 클라이언트 진입점: 화면 UI, 내 조리대 버튼, 튜토리얼 화살표, 부지 글자·손님 방문 버튼, 마우스 회전, 효과음 설정.
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
@@ -6,6 +6,8 @@ local SoundService = game:GetService("SoundService")
local Guide = require(script.Parent.Guide)
local Hud = require(script.Parent.Hud)
local MouseLook = require(script.Parent.MouseLook)
local Plots = require(script.Parent.Plots)
local Stove = require(script.Parent.Stove)
local player = Players.LocalPlayer
@@ -31,10 +33,17 @@ camera:GetPropertyChangedSignal("ViewportSize"):Connect(rescale)
rescale()
-- 구매·확장 효과음은 내 화면에서만 크게(위치 없이) 들립니다.
local Sounds = require(ReplicatedStorage:WaitForChild("Shared"):WaitForChild("Sounds"))
local sfxGroup = SoundService:WaitForChild("Sfx") :: SoundGroup
local function applySfx()
sfxGroup.Volume = if player:GetAttribute("Sfx") == false then 0 else 1
end
player:GetAttributeChangedSignal("Sfx"):Connect(applySfx)
applySfx()
local function uiSound(id: string, volume: number): Sound
local s = Instance.new("Sound")
s.SoundId = id
s.Volume = volume
s.SoundGroup = sfxGroup
s.Parent = SoundService
return s
end
@@ -42,7 +51,9 @@ local buySound = uiSound(Sounds.BUY, 0.7)
local levelSound = uiSound(Sounds.LEVELUP, 0.8)
local NOTIFY_SOUND: { [string]: Sound } = {
purchased = buySound,
newMenu = buySound,
boostGot = buySound,
guestBonus = buySound,
expanded = levelSound,
}
@@ -61,5 +72,11 @@ local world = workspace:WaitForChild("BunsikWorld")
local plot = world:WaitForChild("Plots"):WaitForChild("Plot" .. tostring(plotIndex))
local stove = plot:WaitForChild("Base"):WaitForChild("Stall"):WaitForChild("Stove") :: BasePart
Stove.attach(stove, player, send)
Plots.start(world:WaitForChild("Plots"), player, player.UserId, send)
Guide.start(player)
MouseLook.start(player, hud.menuOpen)
local UserInputService = game:GetService("UserInputService")
if player:GetAttribute("MouseLook") == true and UserInputService.MouseEnabled and UserInputService.KeyboardEnabled then
hud.notify("mouseHint")
end