Skip to content

Commit

Permalink
chore: updated camera color
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobressan committed Apr 24, 2024
1 parent dc8bca2 commit b6f7d46
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions visualizer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,19 @@ mod ships;
struct MyCameraMarker;

fn setup(mut commands: Commands) {
commands.spawn(Camera2dBundle::default()).insert(PanCam {
min_scale: 1.,
// max_scale: Some(3.),
..default()
});
commands
.spawn(Camera2dBundle {
camera: Camera {
clear_color: ClearColorConfig::Custom(Color::BLACK),
..default()
},
..default()
})
.insert(PanCam {
min_scale: 1.,
// max_scale: Some(3.),
..default()
});
}

fn main() {
Expand Down

0 comments on commit b6f7d46

Please sign in to comment.