Implement unit selection system #10

Closed
opened 2026-01-21 14:11:49 -06:00 by cecilgol · 0 comments
Owner

#9

  • Create Selected marker component
  • Create SelectedUnit resource (Option)
  • Create input system for selection key (spacebar/enter)
  • On select input, check if any unit is hovered
  • Store selected unit entity in resource
  • Add Selected component to selected unit
  • Remove Selected from previously selected unit
  • Create visual indicator for selected units (ring/glow)
  • Differentiate selected vs hovered visuals
  • Test selecting different units sequentially
  • Test deselection (clicking empty space)
#9 - [x] Create Selected marker component - [x] Create SelectedUnit resource (Option<Entity>) - [x] Create input system for selection key (spacebar/enter) - [x] On select input, check if any unit is hovered - [x] Store selected unit entity in resource - [x] Add Selected component to selected unit - [x] Remove Selected from previously selected unit - [x] Create visual indicator for selected units (ring/glow) - [x] Differentiate selected vs hovered visuals - [x] Test selecting different units sequentially - [x] Test deselection (clicking empty space)
cecilgol added this to the gamedev project 2026-01-21 14:11:49 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cecilgol/CryOfTheLoon#10
No description provided.