Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made controller render more efficient and added CameraConfig #25

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

FastestMolasses
Copy link
Contributor

There was some TODO's that I implemented. For this solution, there is no need for a hashmap because we can use Bevy's query system as a hashmap. Now the function is down to O(n).

* Added CameraConfig for more configurability
Comment on lines +88 to +91
.insert(CameraConfig {
height_offset: 0.0,
radius_scale: 0.75,
})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an insert because we can't add anymore components in the bundle above.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, did not know you could exhaust that!

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean we should be using packages or something similar

@qhdwight
Copy link
Owner

qhdwight commented Oct 9, 2023

Hi, thank you for the contribution! I will take a look this week - looks good at initial glance.

@@ -25,7 +25,16 @@ pub enum MoveMode {
pub struct LogicalPlayer(pub u8);

#[derive(Component)]
pub struct RenderPlayer(pub u8);
pub struct RenderPlayer {
pub id: u8,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there is a point to the id anymore then, right?

@qhdwight qhdwight self-requested a review October 24, 2023 01:48
Copy link
Owner

@qhdwight qhdwight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@qhdwight qhdwight merged commit 580a3b0 into qhdwight:main Oct 24, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants