-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
* Added CameraConfig for more configurability
.insert(CameraConfig { | ||
height_offset: 0.0, | ||
radius_scale: 0.75, | ||
}) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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
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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
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).