|
|
|
|
@ -47,11 +47,9 @@ impl Plugin for BaseGamePlugin {
|
|
|
|
|
.add_plugins(LoadingPlugin)
|
|
|
|
|
.add_plugins(BaseUiPlugin)
|
|
|
|
|
.add_plugins(ParallaxPlugin)
|
|
|
|
|
// .add_systems(Update, scale_game.run_if(any_component_changed::<Window>))
|
|
|
|
|
.insert_resource(TargetResolution(self.target_resolution.clone()))
|
|
|
|
|
.init_resource::<Rand>()
|
|
|
|
|
.add_systems(
|
|
|
|
|
Update, scale_game.run_if(any_component_changed::<Window>)
|
|
|
|
|
);
|
|
|
|
|
.init_resource::<Rand>();
|
|
|
|
|
|
|
|
|
|
match self.game_type {
|
|
|
|
|
GameType::Two => app.add_systems(Startup, create_camera_2d),
|
|
|
|
|
|