@@ -11,7 +11,7 @@ fn main() {
1111 . add_plugin ( FrameTimeDiagnosticsPlugin :: default ( ) )
1212 . insert_resource ( Config {
1313 line_count : 50_000 ,
14- simple : false ,
14+ fancy : false ,
1515 } )
1616 . insert_resource ( DebugDrawConfig {
1717 always_on_top : false ,
@@ -26,7 +26,7 @@ fn main() {
2626#[ derive( Resource , Debug ) ]
2727struct Config {
2828 line_count : u32 ,
29- simple : bool ,
29+ fancy : bool ,
3030}
3131
3232fn system (
@@ -42,10 +42,10 @@ fn system(
4242 config. line_count = config. line_count . saturating_sub ( 10_000 ) ;
4343 }
4444 if input. just_pressed ( KeyCode :: Space ) {
45- config. simple = !config. simple ;
45+ config. fancy = !config. fancy ;
4646 }
4747
48- if config. simple {
48+ if ! config. fancy {
4949 for _ in 0 ..config. line_count {
5050 draw. line ( Vec3 :: NEG_Y , Vec3 :: Y , Color :: BLACK ) ;
5151 }
@@ -64,7 +64,7 @@ fn system(
6464
6565fn setup ( mut commands : Commands , asset_server : Res < AssetServer > ) {
6666 commands. spawn ( Camera3dBundle {
67- transform : Transform :: from_xyz ( 1 ., 3 ., 5. ) . looking_at ( Vec3 :: ZERO , Vec3 :: Y ) ,
67+ transform : Transform :: from_xyz ( 3 ., 1 ., 5. ) . looking_at ( Vec3 :: ZERO , Vec3 :: Y ) ,
6868 ..default ( )
6969 } ) ;
7070
@@ -90,7 +90,7 @@ fn ui_system(mut query: Query<&mut Text>, config: Res<Config>, diag: Res<Diagnos
9090 FPS: {:.0}\n \n \
9191 Controls:\n \
9292 Up/Down: Raise or lower the line count.\n \
93- Spacebar: Toggle simple mode.",
93+ Spacebar: Toggle fancy mode.",
9494 config. line_count, fps,
9595 ) ;
9696}
0 commit comments