Skip to content

Add satellite launch sounds with special every 10th - #11

Open
wannerdev wants to merge 1 commit into
mainfrom
feature/satellite-launch-sounds
Open

Add satellite launch sounds with special every 10th#11
wannerdev wants to merge 1 commit into
mainfrom
feature/satellite-launch-sounds

Conversation

@wannerdev

Copy link
Copy Markdown
Owner

Description

Adds audio feedback for satellite launches with a special celebratory sound every 10th launch.

Changes

  • Added LaunchCounter resource to track total launches across game session
  • Implemented sound playback on every satellite launch
  • Special sound plays every 10th launch (10, 20, 30, etc.) for milestone celebration
  • Applied to both start_new_launch (mouse) and start_launch_from_touch_end (touch) functions
  • Using warning_sound as placeholder (can be replaced with custom launch sounds)
  • Counter persists across game session and resets on game restart

Sound Behavior

  • Regular launches (1-9, 11-19, etc.): Standard beep sound
  • Milestone launches (10, 20, 30, etc.): Special celebration sound
  • Both mouse and touch: Same sound behavior
  • Logged: Special launches are logged with launch number

Audio Assets

  • Currently using warning_sound for both regular and special launches
  • Can be easily replaced with custom sounds:
    • Regular launch: Short beep/whoosh sound
    • Special launch: Longer/more elaborate celebration sound

Benefits

  • Provides immediate audio feedback for launch actions
  • Milestone celebrations add excitement and progression feeling
  • Helps players track their launch count subconsciously
  • Enhances game feel and polish
  • Works on both desktop and mobile

Technical Details

  • Launch counter increments before sound playback
  • Modulo operation (% 10) determines special launches
  • Sounds use PlaybackSettings::DESPAWN for automatic cleanup
  • Counter is a global resource shared between launch functions

Testing

  • Launch satellites and verify sound plays each time
  • Launch 10 satellites and verify special sound on 10th
  • Test with both mouse and touch input
  • Verify counter persists across multiple launches
  • Check that sounds don't overlap or cause audio issues

Related Issue

Fixes: Sound Effects - Add satellite launch sounds (regular and every 10th)

- Added LaunchCounter resource to track total launches
- Implemented sound playback on every satellite launch
- Special sound plays every 10th launch for milestone celebration
- Applied to both mouse and touch launch functions
- Using warning_sound as placeholder (can be replaced with custom sounds)
- Counter persists across game session
- Provides audio feedback for launch actions
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.

1 participant