diff --git a/examples/the-purple-night/src/lib.rs b/examples/the-purple-night/src/lib.rs index ea667825..754216df 100644 --- a/examples/the-purple-night/src/lib.rs +++ b/examples/the-purple-night/src/lib.rs @@ -1002,7 +1002,7 @@ impl SlimeData { entity.sprite.set_sprite(sprite); entity.velocity.x = match frame { - 2 | 3 | 4 => (Number::new(1) / 5) * Number::new(*direction as i32), + 2..=4 => (Number::new(1) / 5) * Number::new(*direction as i32), _ => 0.into(), };