-
Notifications
You must be signed in to change notification settings - Fork 0
Feedback #1
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
base: feedback
Are you sure you want to change the base?
Feedback #1
Conversation
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.
LGTM
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.
Wszystko w porządku, 5/5
src/bubble.rs
Outdated
for i in 0..bubble_state.count { | ||
let (bubble_position_x, bubble_position_y) = *bubble_state.positions.get(i).unwrap(); | ||
let bubble_size = *bubble_state.sizes.get(i).unwrap(); |
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.
żeby uniknąć tych unwrapów można lepiej zrobić for (position, size) in bubble_state.positions.iter().zip(bubble_state.size.iter())
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.
albo w ogóle trzymać obie te rzeczy w jednym wektorze po prostu
src/wall.rs
Outdated
|
||
pub struct WallPlugin; | ||
|
||
impl Plugin for WallPlugin { |
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.
robienie osobnego plugina tutaj wydaje się zdecydowanie overkillem :)
src/player.rs
Outdated
query: Query<&Transform, With<Player>>, | ||
) { | ||
if let Ok(player_transform) = query.get_single() { | ||
if keyboard_input.just_pressed(KeyCode::Space) && !player_state.hook_shoted { |
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.
dopiero po przeczytaniu tego fragmentu dowiedziałem się, że gracz może strzelać spacją
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.
Bardzo ładnie, 5/5
👋! GitHub Classroom created this pull request as a place for your teacher to leave feedback on your work. It will update automatically. Don’t close or merge this pull request, unless you’re instructed to do so by your teacher.
In this pull request, your teacher can leave comments and feedback on your code. Click the Subscribe button to be notified if that happens.
Click the Files changed or Commits tab to see all of the changes pushed to
main
since the assignment started. Your teacher can see this too.Notes for teachers
Use this PR to leave feedback. Here are some tips:
main
since the assignment started. To leave comments on specific lines of code, put your cursor over a line of code and click the blue + (plus sign). To learn more about comments, read “Commenting on a pull request”.main
. Click a commit to see specific changes.For more information about this pull request, read “Leaving assignment feedback in GitHub”.
Subscribed: @karqz