diff config/game.toml @ 4:2d46729a022e

sound processing and in-game sounds
author ark
date 2026-10-18 20:58 +0200
parents 3dd5b745fa08
children 910b26feca76
line wrap: on
line diff
--- a/config/game.toml	Sun Oct 18 20:09:40 2026 +0200
+++ b/config/game.toml	Sun Oct 18 20:58:33 2026 +0200
@@ -165,6 +165,38 @@
 speeds = [1, 2]         # guess
 
 
+# sound events (doc/sound.md). the recordings come from art/sounds/, named
+# after the event. per event: volume is a share of full volume. min_interval
+# is the least time between two plays; plays in between are dropped. beep is
+# the placeholder for an event without a recording, as notes of [frequency in
+# Hz, seconds].
+[sound]
+enabled = true          # proto, the game has no sound switch yet
+volume = 0.8            # guess, all sounds
+beep_wave = "square"    # proto
+
+[sound.event]
+t0_attack = { volume = 0.6 }        # guess
+t1_shot = { volume = 0.4 }          # guess
+t2_shot = { volume = 0.4 }          # guess
+t3_shot = { volume = 0.5 }          # guess
+monster_enter = { volume = 0.4 }    # guess, every monster for now (decided, to playtest)
+monster_exit = { volume = 0.8 }     # guess
+monster_die = { volume = 0.5 }      # guess
+monster_hit = { volume = 0.2, min_interval = 0.05, beep = [[1200, 0.03]] }    # guess
+boss_enter = { volume = 1.0 }       # guess
+boss_exit = { volume = 1.0 }        # guess
+boss_die = { volume = 1.0 }         # guess
+coins_arrive = { volume = 0.25, min_interval = 0.08, beep = [[1568, 0.04], [2093, 0.06]] }    # guess
+wave_start = { volume = 0.4, beep = [[440, 0.1], [660, 0.15]] }     # guess
+early_bonus = { volume = 0.4, beep = [[880, 0.06], [1175, 0.06], [1760, 0.1]] }   # guess
+tower_built = { volume = 0.4, beep = [[330, 0.05], [494, 0.08]] }   # guess
+placement_refused = { volume = 0.4, beep = [[220, 0.12], [165, 0.18]] }   # guess
+button_tap = { volume = 0.3, beep = [[1000, 0.02]] }    # guess
+map_won = { volume = 1.0 }          # guess
+map_lost = { volume = 1.0 }         # guess
+
+
 # sprite drawing direction (art.md): angle the drawing points to as drawn,
 # 0 right, -90 up. sprites not listed do not turn.
 [art.angle]