Skip to content

Commit

Permalink
draw x axis
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemcneil committed Oct 24, 2023
1 parent f3b39cd commit cd622df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn main() {
))
.insert_resource(Config::default())
.add_systems(Startup, setup)
.add_systems(Update, (config_ui_system, keyboard_events))
.add_systems(Update, (config_ui_system, keyboard_events, draw_axis))
.run();
}

Expand Down Expand Up @@ -241,3 +241,7 @@ fn keyboard_events(
}
}
}

fn draw_axis(mut gizmos: Gizmos) {
gizmos.line_2d(1000.0 * Vec2::NEG_X, 1000.0 * Vec2::X, Color::BLACK);
}

0 comments on commit cd622df

Please sign in to comment.