Skip to content

Add terrain-based footstep sound system - #2941

Open
Leonardo-UTP wants to merge 2 commits into
endlessm:mainfrom
Leonardo-UTP:issue-1095-footstep-sounds
Open

Leonardo-UTP wants to merge 2 commits into
endlessm:mainfrom
Leonardo-UTP:issue-1095-footstep-sounds

Conversation

@Leonardo-UTP

Copy link
Copy Markdown
Contributor

Description

Adds support for terrain-based footstep sounds.

The player can now detect the material of the tile beneath them using a TileSet Custom Data Layer named material. When a footstep is triggered by the walk animation, the corresponding sound configured for that material is played.

If no sound is configured for the detected material, the existing default footstep sound is used as a fallback.

Changes

  • Added a FootstepSound component to the player.
  • Added terrain material detection using TileSet Custom Data.
  • Added configurable sounds for different terrain materials.
  • Connected terrain detection to the footstep frames of the walk animation.
  • Preserved the existing footstep sound as the default fallback.

Fixes #1095

@Leonardo-UTP
Leonardo-UTP requested a review from a team as a code owner September 21, 2026 11:35
@github-actions

Copy link
Copy Markdown

Play this branch at https://play.threadbare.game/branches/Leonardo-UTP/issue-1095-footstep-sounds/.

(This launches the game from the start, not directly at the change(s) in this pull request.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make it possible to have different footstep sounds for different terrain materials

1 participant