Every sound is made by scripts in tools/audio/ and committed as a WAV in assets/audio/ with a manifest of hashes and levels: - dsp.gd: seeded noise, wavetable oscillators, filters, envelopes and struck modes. recipes.gd: 50 effects (footsteps on five surfaces, a report per weapon, impacts, carpentry building and breaking, the tide's bell, foghorn, surge and lighthouse, player, ambience, menus). - score.gd: an original eight-bar tune and chords in D Dorian, 6/8, rendered as four looping layers (drone, frame drum, concertina, fiddle). - loudness.gd and check.gd: per-category loudness targets, a -1 dBFS peak ceiling and the mix order (the tide loudest). make audio and make audio-check. In the client, SoundDirector turns FX records, footsteps, building, the tide and the player's own hurts into sounds, placed on 3D voices at the event so gunfire and footsteps come from their direction. MusicDirector fades the score's layers with the tide on an AudioStreamSynchronized, full in menus. MenuSounds knocks for buttons. Closes #48 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
# Text files use LF everywhere.
|
|
* text=auto eol=lf
|
|
*.gd text eol=lf
|
|
*.tscn text eol=lf
|
|
*.tres text eol=lf
|
|
*.md text eol=lf
|
|
*.sh text eol=lf
|
|
|
|
# Binary assets go through Git LFS. gitattributes cannot filter by size, so these
|
|
# are the formats that routinely exceed 1 MB. tools/check_binaries.sh fails
|
|
# `make check` if any other tracked binary over 1 MB slips through without LFS.
|
|
*.glb filter=lfs diff=lfs merge=lfs -text
|
|
*.gltf filter=lfs diff=lfs merge=lfs -text
|
|
*.blend filter=lfs diff=lfs merge=lfs -text
|
|
*.wav filter=lfs diff=lfs merge=lfs -text
|
|
*.ogg filter=lfs diff=lfs merge=lfs -text
|
|
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
|
*.exr filter=lfs diff=lfs merge=lfs -text
|
|
*.hdr filter=lfs diff=lfs merge=lfs -text
|
|
*.pck filter=lfs diff=lfs merge=lfs -text
|
|
|
|
# The generated audio is small (every file under 1 MB, held there by
|
|
# tools/check_binaries.sh) and the Gitea server has no LFS, so it stays in plain git.
|
|
assets/audio/*.wav -filter -diff -merge binary
|
|
|
|
# Small images stay in plain git, as binary.
|
|
*.png binary
|
|
*.jpg binary
|
|
*.webp binary
|