feat(bunsik): 직접 만든 효과음 4개, 게임 아이콘·썸네일
- tools/sfx.py: 동전·구매·확장·조리음 합성, 오디오 에셋으로 업로드(Sounds.luau) - 구매·확장 소리는 클라이언트에서 2D로, 동전 소리는 손님 자리에서 재생 - tools/art.py: 게임 아이콘(512)과 썸네일(1920x1080) 그림 추가 - cloud.py: 오디오 업로드·에셋 상태 조회 명령, 통합 테스트에 효과음 소유 확인(526개 통과) - DECISIONS: 에셋은 없으면 직접 만든다는 원칙과 현황 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
local Players = game:GetService("Players")
|
||||
local ReplicatedStorage = game:GetService("ReplicatedStorage")
|
||||
|
||||
local SoundService = game:GetService("SoundService")
|
||||
|
||||
local Guide = require(script.Parent.Guide)
|
||||
local Hud = require(script.Parent.Hud)
|
||||
local Stove = require(script.Parent.Stove)
|
||||
@@ -27,9 +29,30 @@ local function rescale()
|
||||
end
|
||||
camera:GetPropertyChangedSignal("ViewportSize"):Connect(rescale)
|
||||
rescale()
|
||||
-- 구매·확장 효과음은 내 화면에서만 크게(위치 없이) 들립니다.
|
||||
local Sounds = require(ReplicatedStorage:WaitForChild("Shared"):WaitForChild("Sounds"))
|
||||
local function uiSound(id: string, volume: number): Sound
|
||||
local s = Instance.new("Sound")
|
||||
s.SoundId = id
|
||||
s.Volume = volume
|
||||
s.Parent = SoundService
|
||||
return s
|
||||
end
|
||||
local buySound = uiSound(Sounds.BUY, 0.7)
|
||||
local levelSound = uiSound(Sounds.LEVELUP, 0.8)
|
||||
local NOTIFY_SOUND: { [string]: Sound } = {
|
||||
purchased = buySound,
|
||||
boostGot = buySound,
|
||||
expanded = levelSound,
|
||||
}
|
||||
|
||||
notifyRemote.OnClientEvent:Connect(function(key, args)
|
||||
if typeof(key) == "string" then
|
||||
hud.notify(key, if typeof(args) == "table" then args else nil)
|
||||
local s = NOTIFY_SOUND[key]
|
||||
if s then
|
||||
s:Play()
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user