Compare commits
2 commits
0f067483d1
...
589a2d1b65
Author | SHA1 | Date | |
---|---|---|---|
589a2d1b65 | |||
f4663d3d68 |
3 changed files with 5 additions and 17 deletions
|
@ -26,7 +26,7 @@ members = [
|
|||
destructure_traitobject = "0.3.0"
|
||||
itertools = "0.14.0"
|
||||
serde = { version = "1.0.203", features = ["derive"] }
|
||||
ron = "0.9.0"
|
||||
ron = "0.10.0"
|
||||
paste = "1.0.15"
|
||||
chrono = { version = "0.4.35", features = ["serde"] }
|
||||
anyhow = { version = "1.0.86", features = ["backtrace"] }
|
||||
|
|
|
@ -140,7 +140,6 @@ impl Scene {
|
|||
|
||||
pub(crate) fn insert_default_updates(world: &mut WorldBuilder) -> Result<()> {
|
||||
world.add_update(
|
||||
"animate",
|
||||
5_500_000,
|
||||
|commands: &mut Commands, mut query: Query<(&mut Draw, &mut Animation)>| {
|
||||
let (draw, animation) = &mut *query;
|
||||
|
@ -152,7 +151,6 @@ impl Scene {
|
|||
)?;
|
||||
|
||||
world.add_update(
|
||||
"particle_system",
|
||||
5_000_000,
|
||||
|commands: &mut Commands, mut query: Query<&mut ParticleSystem>, scene: &mut Scene| {
|
||||
let now = commands.now();
|
||||
|
|
|
@ -251,23 +251,13 @@ impl Game {
|
|||
|
||||
impl Game {
|
||||
pub fn setup_updates(world_builder: &mut WorldBuilder) -> Result<()> {
|
||||
world_builder.add_update("player_rotation", 200, Self::player_orientation)?;
|
||||
|
||||
if !FREE_CAMERA_CONTROL {
|
||||
world_builder.add_update("camera_position", 1_000, Self::camera_update)?;
|
||||
world_builder.add_update(1_000, Self::camera_update)?;
|
||||
}
|
||||
|
||||
world_builder.add_update(
|
||||
"celestial velocity update",
|
||||
100,
|
||||
Self::celestial_velocity_update,
|
||||
)?;
|
||||
|
||||
world_builder.add_update(
|
||||
"celestial buffer update",
|
||||
110,
|
||||
Self::celestial_buffer_update,
|
||||
)?;
|
||||
world_builder.add_update(100, Self::celestial_velocity_update)?;
|
||||
world_builder.add_update(200, Self::player_orientation)?;
|
||||
world_builder.add_update(110, Self::celestial_buffer_update)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue