fix flicker in fade in effect (hopefully)
This commit is contained in:
parent
54cb36d8cb
commit
237cc6c1b8
|
@ -30,7 +30,7 @@ impl Plugin for CameraControllerPlugin {
|
|||
// it because it felt nice.
|
||||
pub const RADIANS_PER_DOT: f32 = 1.0 / 180.0;
|
||||
|
||||
fn setup_camera(
|
||||
pub fn setup_camera(
|
||||
mut commands: Commands,
|
||||
) {
|
||||
// Add player
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
use bevy::prelude::*;
|
||||
use crate::settings;
|
||||
use crate::{settings, camera};
|
||||
|
||||
pub struct EffectsPlugin;
|
||||
|
||||
impl Plugin for EffectsPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_systems(Startup, setup);
|
||||
app.add_systems(Startup, spawn_effects.after(setup));
|
||||
app.add_systems(Startup, spawn_effects.after(setup).after(camera::setup_camera));
|
||||
app.add_systems(Update, spawn_effects);
|
||||
app.add_systems(Update, update_fadeblack);
|
||||
app.add_event::<SpawnEffectEvent>();
|
||||
|
|
Loading…
Reference in a new issue