diff --git a/CHANGELOG.md b/CHANGELOG.md index cc621a3..bd4374d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - PlayTime resource records unpaused play time +- Add rotation effect; will rotate entities with the Rotation component + +### Changed + +- Add distance value to Indicated entities, enabling some to be hidden from system when out of range ### Fixed diff --git a/assets/space/celestials/teapot_large.png b/assets/space/celestials/teapot_large.png new file mode 100644 index 0000000..a505fdb --- /dev/null +++ b/assets/space/celestials/teapot_large.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6880c464e9d178a8732b5786e1817e8af8c5d7c9b984c78056c35b534dd40c4b +size 845 diff --git a/src/core/effects/mod.rs b/src/core/effects/mod.rs index d36351a..c5b3373 100644 --- a/src/core/effects/mod.rs +++ b/src/core/effects/mod.rs @@ -1,2 +1,3 @@ pub mod animate; pub mod blink; +pub mod rotate; diff --git a/src/core/effects/rotate.rs b/src/core/effects/rotate.rs new file mode 100644 index 0000000..43e63fb --- /dev/null +++ b/src/core/effects/rotate.rs @@ -0,0 +1,10 @@ +use bevy::prelude::*; + +#[derive(Component)] +pub struct Rotation(pub f32); + +pub(crate) fn rotate_system(time: Res