diff --git a/examples/hex_grid.rs b/examples/hex_grid.rs index 5177783..1a57efb 100644 --- a/examples/hex_grid.rs +++ b/examples/hex_grid.rs @@ -175,6 +175,14 @@ fn handle_input( .entity(entity) .insert(map.selected_material.clone()); highlighted_hexes.selected = coord; + + let top = coord.neighbor(hexx::direction::Direction::Top); + if let Some(entity) = map.entities.get(&top).copied() { + commands + .entity(entity) + .insert(map.half_ring_material.clone()); + highlighted_hexes.selected = top; + } } } }