Sound has been updated. As a result snares can be collected from a bit further away as it is now harder to tell when you're about to step on it. A few string updates. Mountain terrain added. May require rope for traversal.

This commit is contained in:
Storm Dragon
2026-01-19 15:00:01 -05:00
parent 93dfd7347b
commit 5a16f798ac
12 changed files with 774 additions and 172 deletions

View File

@@ -87,9 +87,35 @@ const int BANDIT_DETECTION_RADIUS = 5;
const int BANDIT_WANDER_DIRECTION_CHANGE_MIN = 3000;
const int BANDIT_WANDER_DIRECTION_CHANGE_MAX = 8000;
// Stream audio
const int STREAM_SOUND_RANGE = 5;
const float STREAM_SOUND_VOLUME_STEP = 0.6;
// Audio ranges and volume falloff
// Formula: final_volume = start_volume - (volume_step × distance)
// Using 30 dB fade over range for gradual but noticeable falloff
const int AUDIO_TILE_SCALE = 10;
const float AUDIO_PAN_STEP = 2.0;
const float AUDIO_VOLUME_STEP = 3.0;
const int SNARE_SOUND_RANGE = 5;
const float SNARE_SOUND_VOLUME_STEP = 4.0; // More audible for locating snares
const float SNARE_SOUND_PAN_STEP = 4.0; // Stronger pan for direction
const int SNARE_COLLECT_RANGE = 2;
const int FIRE_SOUND_RANGE = 6;
const float FIRE_SOUND_VOLUME_STEP = 5.0; // 30 dB over 6 tiles
const int FIREPIT_SOUND_RANGE = 5;
const float FIREPIT_SOUND_VOLUME_STEP = 6.0; // 30 dB over 5 tiles
const int STREAM_SOUND_RANGE = 7;
const float STREAM_SOUND_VOLUME_STEP = 4.3; // 30 dB over 7 tiles
// Mountain configuration
const int MOUNTAIN_SIZE = 60;
const int MOUNTAIN_MIN_ELEVATION = 0;
const int MOUNTAIN_MAX_ELEVATION = 40;
const int MOUNTAIN_STEEP_THRESHOLD = 6;
const int MOUNTAIN_MAX_SLOPE = 20;
const int ROPE_CLIMB_SPEED = 1000;
const int MOUNTAIN_STREAM_SOUND_RANGE = 7;
const float MOUNTAIN_STREAM_VOLUME_STEP = 4.3; // 30 dB over 7 tiles
const int QUEST_MAX_ACTIVE = 4;
const int QUEST_CHANCE_PER_FAVOR = 10;
const int QUEST_MIN_CHANCE = 5;