Fixed typo in example comments. (#776)
This commit is contained in:
parent
c9fab0b595
commit
562190f518
@ -27,7 +27,7 @@ fn spawn_system(
|
|||||||
// Move sprites according to their velocity
|
// Move sprites according to their velocity
|
||||||
fn move_system(pool: Res<ComputeTaskPool>, mut sprites: Query<(&mut Transform, &Velocity)>) {
|
fn move_system(pool: Res<ComputeTaskPool>, mut sprites: Query<(&mut Transform, &Velocity)>) {
|
||||||
// Compute the new location of each sprite in parallel on the
|
// Compute the new location of each sprite in parallel on the
|
||||||
// ComputeTaskPool using batches of 32 sprties
|
// ComputeTaskPool using batches of 32 sprites
|
||||||
//
|
//
|
||||||
// This example is only for demonstrative purposes. Using a
|
// This example is only for demonstrative purposes. Using a
|
||||||
// ParallelIterator for an inexpensive operation like addition on only 128
|
// ParallelIterator for an inexpensive operation like addition on only 128
|
||||||
@ -41,7 +41,7 @@ fn move_system(pool: Res<ComputeTaskPool>, mut sprites: Query<(&mut Transform, &
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bounce sprties outside the window
|
// Bounce sprites outside the window
|
||||||
fn bounce_system(
|
fn bounce_system(
|
||||||
pool: Res<ComputeTaskPool>,
|
pool: Res<ComputeTaskPool>,
|
||||||
windows: Res<Windows>,
|
windows: Res<Windows>,
|
||||||
|
Loading…
Reference in New Issue
Block a user