Skip to content

Add spacebar slow-down indicator - #12

Open
wannerdev wants to merge 1 commit into
mainfrom
feature/spacebar-indicator
Open

Add spacebar slow-down indicator#12
wannerdev wants to merge 1 commit into
mainfrom
feature/spacebar-indicator

Conversation

@wannerdev

Copy link
Copy Markdown
Owner

Description

Adds a visual indicator that shows when the spacebar is being pressed to activate the thruster and slow down satellites.

Changes

  • Added SpacebarIndicator component
  • Created new UI element displaying "[SPACE]" text
  • Positioned next to music button in bottom left area
  • Shows when spacebar key is pressed
  • Hides when spacebar key is released
  • Added update_spacebar_indicator system
  • Added necessary imports: Fuel, Satellite, NavigationInstruments
  • Styled to match existing HUD theme with retro aesthetic

UI Behavior

  • Hidden by default: Indicator is not visible initially
  • Shows on press: Appears when player presses spacebar
  • Hides on release: Disappears when player releases spacebar
  • Real-time feedback: Updates every frame for immediate response
  • Desktop only: Works with keyboard input (spacebar)

Benefits

  • Provides immediate visual feedback for spacebar usage
  • Helps new players discover the slow-down mechanic
  • Confirms that spacebar input is being registered
  • Enhances game feel with responsive UI
  • Complements the tutorial text about spacebar
  • Makes thruster activation more obvious

UI Layout

  • Position: Bottom left, to the right of music button
  • Size: 120px wide, 50px tall
  • Text: "[SPACE]" in retro font
  • Color: Matches game's orange/amber theme
  • Border: 2px outline matching other HUD elements

Testing

  • Launch a satellite and select it
  • Press spacebar and verify indicator appears
  • Release spacebar and verify indicator disappears
  • Check that indicator matches HUD styling
  • Verify it doesn't interfere with other UI elements

Related Issue

Fixes: Sound Effects - Indicate that spacebar can be pressed to slow down

- Added SpacebarIndicator component
- Created new UI element showing [SPACE] indicator
- Positioned next to music button (bottom left area)
- Shows when spacebar is pressed
- Hides when spacebar is released
- Provides visual feedback for thruster activation
- Helps players understand spacebar functionality
- Styled to match existing HUD theme
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