Skip to content

Comments

Add sound effects issue #5#68

Merged
knative-prow[bot] merged 5 commits intoknative-extensions:mainfrom
Itx-Psycho0:add-sound-effects-issue-5
Feb 2, 2026
Merged

Add sound effects issue #5#68
knative-prow[bot] merged 5 commits intoknative-extensions:mainfrom
Itx-Psycho0:add-sound-effects-issue-5

Conversation

@Itx-Psycho0
Copy link
Contributor

Summary

Integrates existing sound assets to enhance game user experience with audio feedback for all player interactions. (Fixes #5 )

Changes Made

New Files

  • Scripts/AudioManager.gd - Singleton for centralized audio control with ducking

Modified Files

  • Scripts/event_box.gd - Added click sound when selecting source
  • Scripts/SinkClick.gd - Added click sound when selecting destination
  • Scripts/ConveyerController.gd - Added looping construction sound
  • Scripts/draggable_filter.gd - Added poof sound when box is filtered
  • Scripts/level.gd - Added success/fail sounds
  • project.godot - Added AudioManager autoload

Sound Effects Integrated

sfx_click_start.wav - Plays when clicking source/box
sfx_click_end.wav - Plays when clicking destination/sink
sfx_construction.wav - Loops continuously after first belt created, auto-ducks when other sounds play
sfx_poof.wav - Plays when event doesn't pass through filter
sfx_level_clear.wav - Plays on level success
sfx_level_fail.wav - Plays on level failure

Technical Details

  • Audio Ducking: Background construction sound automatically lowers volume (-20dB) when foreground sounds play, then restores to normal (-10dB)
  • Manual Looping: Uses finished signal for reliable looping in Godot 4.x
  • Singleton Pattern: AudioManager accessible globally via autoload
  • Smooth Transitions: Tween-based volume changes for professional audio feel

Testing

All sounds play at appropriate trigger points
Construction sound loops continuously throughout level
Audio ducking works smoothly (background quiets for foreground)
Construction sound stops on level completion/failure
No audio clipping or overlap issues
Tested across all game levels (BasicEventFlow, BoxClick, MultiSink, DlqPattern)
No performance impact

Demo Video

Screen.Recording.2026-01-30.213830.mp4

Fixes #5

…ion bug

- Added dynamic conveyor creation for MultiSink level (3+ conveyors)
- Maintained safety check for BasicEventFlow to prevent crash
- Fixed level.gd to initialize before scene change (not after)
- Resolves issue where MultiSink failed during full game playthrough
- Addresses maintainer feedback about connection limits

Fixes knative-extensions#55
- Created AudioManager singleton for centralized audio control
- Added looping construction sound with audio ducking
- Added click sounds for source and destination selection
- Added poof sound when events are filtered out
- Added success/fail sounds for level completion
- Integrated existing sound assets from SoundEffects folder

Fixes knative-extensions#5
@Itx-Psycho0
Copy link
Contributor Author

Hi @ankitajana21, @Cali0707 and @zainabhusain227,

Sound effects integration is complete! All 6 sound assets are now integrated with:

  • Click sounds for user interactions
  • Looping construction sound with auto-ducking
  • Poof sound for filtered events
  • Success/fail sounds for level completion

I've attached the demo video showing the implementation. Ready for review!

Fixes #5

@ankitajana21
Copy link
Member

@Itx-Psycho0
This PR looks good, could you remove the changes made in ConveyerController.gd? (as those seem unrelated to this PR)

Removed commented-out code for conveyor creation safety checks and streamlined the create_conveyor function.
@Itx-Psycho0
Copy link
Contributor Author

@ankitajana21 Fixed!

Thanks so much for the review and for catching that! Really appreciate your guidance.

I've cleaned up ConveyerController.gd and removed all the unrelated changes from PR #56. It now only contains the sound effect line as it should.

Thanks for helping me learn proper PR practices! Ready for re-review!

@ankitajana21
Copy link
Member

Thanks for working on this.
/lgtm
@Cali0707

@Cali0707
Copy link
Member

Cali0707 commented Feb 2, 2026

Hey @Itx-Psycho0 can you fix the merge conflict on this PR?

@Itx-Psycho0
Copy link
Contributor Author

@Cali0707

Merge conflict resolved!

The sound effect call in event_box.gd is now properly integrated.

Ready for final review .

Copy link
Member

@Cali0707 Cali0707 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@knative-prow
Copy link

knative-prow bot commented Feb 2, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, Itx-Psycho0

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot added the approved label Feb 2, 2026
@knative-prow knative-prow bot merged commit 36f95f0 into knative-extensions:main Feb 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding Sound Assets

4 participants