Add a camera system #69

Merged
CoCo_Sol merged 15 commits from camera into main 2024-03-02 11:18:13 +00:00
Owner

closes: #63

closes: #63
CoCo_Sol added this to the Renderer milestone 2024-02-27 17:43:45 +00:00
CoCo_Sol added the
Kind/Feature
label 2024-02-27 17:43:46 +00:00
CoCo_Sol self-assigned this 2024-02-27 17:43:46 +00:00
CoCo_Sol added 10 commits 2024-02-27 17:43:47 +00:00
save
Some checks failed
Rust Checks / checks (push) Failing after 19s
6ad7aa292c
Merge branch 'main' into camera
Some checks failed
Rust Checks / checks (push) Failing after 5s
30129438a2
update
Some checks failed
Rust Checks / checks (push) Failing after 16s
3b5126c309
update
Some checks failed
Rust Checks / checks (push) Failing after 5s
c9de76514d
fmt
Some checks failed
Rust Checks / checks (push) Has been cancelled
36ef3c05eb
remove exemple
Some checks failed
Rust Checks / checks (push) Has been cancelled
3180af8ac3
remove image
All checks were successful
Rust Checks / checks (push) Successful in 2m23s
21f70c6f9e
change doc
Some checks failed
Rust Checks / checks (push) Failing after 5s
740ae3ba5a
fmt
All checks were successful
Rust Checks / checks (push) Successful in 2m20s
Rust Checks / checks (pull_request) Successful in 1m49s
2266bf7667
CoCo_Sol requested review from tipragot 2024-02-27 17:45:23 +00:00
tipragot requested changes 2024-02-28 08:54:28 +00:00
@ -0,0 +7,4 @@
use crate::CurrentScene;
/// The speed of camera movement.
const CAMERA_SPEED_MOVEMENT: f32 = 10.;
Contributor

This should be a resource and the others too

This should be a resource and the others too
CoCo_Sol marked this conversation as resolved
CoCo_Sol added 1 commit 2024-02-28 12:37:10 +00:00
update
All checks were successful
Rust Checks / checks (push) Successful in 5m32s
Rust Checks / checks (pull_request) Successful in 2m41s
2af9dd5fe1
CoCo_Sol requested review from tipragot 2024-02-28 12:43:08 +00:00
tipragot requested changes 2024-02-29 16:57:50 +00:00
@ -0,0 +56,4 @@
commands.spawn(Camera2dBundle::default());
}
/// Initializes the key movement settings for the camera.
Contributor

Not only...

Not only...
CoCo_Sol marked this conversation as resolved
@ -0,0 +94,4 @@
}
}
/// Scales the camera with mouse input.
Contributor

The view not the camera

The view not the camera
CoCo_Sol marked this conversation as resolved
@ -0,0 +96,4 @@
/// Scales the camera with mouse input.
fn scale_system(
mut scroll_ev: EventReader<MouseWheel>,
Contributor

Don't use abreviations: https://youtu.be/-J3wNP6u5YU

Don't use abreviations: https://youtu.be/-J3wNP6u5YU
CoCo_Sol marked this conversation as resolved
CoCo_Sol added 1 commit 2024-03-01 06:53:05 +00:00
save
All checks were successful
Rust Checks / checks (push) Successful in 4m10s
Rust Checks / checks (pull_request) Successful in 2m37s
382d1c102d
CoCo_Sol requested review from tipragot 2024-03-01 07:10:02 +00:00
tipragot requested changes 2024-03-01 07:30:40 +00:00
@ -0,0 +16,4 @@
/// The minimum scale of the camera.
#[derive(Resource)]
struct MinScale(f32);
Contributor

No abreviations

No abreviations
CoCo_Sol marked this conversation as resolved
CoCo_Sol added 1 commit 2024-03-02 10:58:50 +00:00
rename
Some checks failed
Rust Checks / checks (push) Has been cancelled
Rust Checks / checks (pull_request) Successful in 3m53s
e3e8adf244
CoCo_Sol added 1 commit 2024-03-02 11:01:36 +00:00
remove abreviation
All checks were successful
Rust Checks / checks (push) Successful in 2m41s
Rust Checks / checks (pull_request) Successful in 2m19s
2d13997750
CoCo_Sol added 1 commit 2024-03-02 11:13:59 +00:00
Update crates/border-wars/src/camera.rs
All checks were successful
Rust Checks / checks (push) Successful in 2m4s
Rust Checks / checks (pull_request) Successful in 1m49s
da38d2932c
CoCo_Sol requested review from tipragot 2024-03-02 11:16:23 +00:00
tipragot approved these changes 2024-03-02 11:17:00 +00:00
CoCo_Sol merged commit bb17d22b35 into main 2024-03-02 11:18:13 +00:00
CoCo_Sol referenced this pull request from a commit 2024-03-02 11:18:14 +00:00
CoCo_Sol deleted branch camera 2024-03-02 11:18:22 +00:00
Sign in to join this conversation.
No description provided.