Skip to content

Commit

Permalink
➕ bevy_cameraman
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienjuif committed Nov 29, 2023
1 parent 5321b58 commit 3677180
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 259 deletions.
6 changes: 4 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ edition = "2021"
bevy = "0.12.0"
bevy_rapier2d = "0.23.0"
rand = "0.8.5"
bevy_camera = { path = "camera" }
blake3 = { version = "1.5", features=["pure"] }
bevy_cameraman = "0.1.0"

# Enable a small amount of optimization in debug mode
[profile.dev]
Expand Down
7 changes: 0 additions & 7 deletions camera/Cargo.toml

This file was deleted.

246 changes: 0 additions & 246 deletions camera/src/lib.rs

This file was deleted.

2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use bevy::{
prelude::*,
DefaultPlugins,
};
use bevy_camera::CameraPlugin;
use bevy_cameraman::CameraPlugin;
use bevy_rapier2d::prelude::*;
use castles::CastlesPlugin;
use health::HealthPlugin;
Expand Down
4 changes: 2 additions & 2 deletions src/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use bevy::{
sprite::{Sprite, SpriteBundle},
time::Time,
};
use bevy_camera::{Camera, CameraBundle, Target};
use bevy_cameraman::{CameraBundle, Cameraman, Target};
use bevy_rapier2d::prelude::*;

const DEFAULT_HAND_COLOR: Color = Color::rgb(0.8, 0.25, 0.24);
Expand Down Expand Up @@ -160,7 +160,7 @@ fn setup(
.id();

commands.spawn(CameraBundle::new(
Camera::new(entity, Vec2::new(50.0, 20.0), Vec3::ONE * 0.8),
Cameraman::new(entity, Vec2::new(50.0, 20.0), Vec3::ONE * 0.8),
Camera2dBundle::default(),
));
}
Expand Down

0 comments on commit 3677180

Please sign in to comment.