fix flicker in fade in effect (hopefully)

This commit is contained in:
yuni 2024-03-30 22:36:04 +01:00
parent 54cb36d8cb
commit 237cc6c1b8
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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>();