@@ -11,7 +11,7 @@ fn main() {
11
11
. add_plugin ( FrameTimeDiagnosticsPlugin :: default ( ) )
12
12
. insert_resource ( Config {
13
13
line_count : 50_000 ,
14
- simple : false ,
14
+ fancy : false ,
15
15
} )
16
16
. insert_resource ( DebugDrawConfig {
17
17
always_on_top : false ,
@@ -26,7 +26,7 @@ fn main() {
26
26
#[ derive( Resource , Debug ) ]
27
27
struct Config {
28
28
line_count : u32 ,
29
- simple : bool ,
29
+ fancy : bool ,
30
30
}
31
31
32
32
fn system (
@@ -42,10 +42,10 @@ fn system(
42
42
config. line_count = config. line_count . saturating_sub ( 10_000 ) ;
43
43
}
44
44
if input. just_pressed ( KeyCode :: Space ) {
45
- config. simple = !config. simple ;
45
+ config. fancy = !config. fancy ;
46
46
}
47
47
48
- if config. simple {
48
+ if ! config. fancy {
49
49
for _ in 0 ..config. line_count {
50
50
draw. line ( Vec3 :: NEG_Y , Vec3 :: Y , Color :: BLACK ) ;
51
51
}
@@ -64,7 +64,7 @@ fn system(
64
64
65
65
fn setup ( mut commands : Commands , asset_server : Res < AssetServer > ) {
66
66
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 ) ,
68
68
..default ( )
69
69
} ) ;
70
70
@@ -90,7 +90,7 @@ fn ui_system(mut query: Query<&mut Text>, config: Res<Config>, diag: Res<Diagnos
90
90
FPS: {:.0}\n \n \
91
91
Controls:\n \
92
92
Up/Down: Raise or lower the line count.\n \
93
- Spacebar: Toggle simple mode.",
93
+ Spacebar: Toggle fancy mode.",
94
94
config. line_count, fps,
95
95
) ;
96
96
}
0 commit comments