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

Feedback #1

Open
wants to merge 84 commits into
base: feedback
Choose a base branch
from
Open

Feedback #1

wants to merge 84 commits into from

Conversation

github-classroom[bot]
Copy link
Contributor

@github-classroom github-classroom bot commented Apr 11, 2022

👋! 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: - Click the **Files changed** tab to see all of the changes pushed to `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](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/commenting-on-a-pull-request)”. - Click the **Commits** tab to see the commits pushed to `main`. Click a commit to see specific changes. - If you turned on autograding, then click the **Checks** tab to see the results. - This page is an overview. It shows commits, line comments, and general comments. You can leave a general comment below. For more information about this pull request, read “[Leaving assignment feedback in GitHub](https://docs.github.com/education/manage-coursework-with-github-classroom/leave-feedback-with-pull-requests)”.

Subscribed: @PBundyra @KatKlo

Copy link

@agluszak agluszak left a comment

Choose a reason for hiding this comment

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

Trochę mało konkretnie, a ponieważ robicie to we dwie osoby, to projekt siłą rzeczy powinien być większy niż projekt jednoosobowy

README.md Outdated

## Biblioteki
- Bevy
- może coś do serializacji danych? (czy mógłby Pan coś polecić?)
- Bevy/ggez/ może mógłby Pan pomóc dobrać odpowiednią libkę

Choose a reason for hiding this comment

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

Bevy wydaje mi się fajniejsze

Copy link

@agluszak agluszak left a comment

Choose a reason for hiding this comment

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

Kodu wydaje się, że jest dużo, ale niestety bardzo duża jego część to powtórzenia i bevy'owy boilerplate. Nazewnictwo bywa niespójne. Kod pod względem technicznym nie jest jakiś zaawansowany. Oceniam na 4/5.

Do zrobienia w drugiej części oprócz tego co sami zaplamowaliście sugeruję wprowadzić determinizm (tzn. użyć RNG który da się seedować), tak żeby dało się np. zagrać dwa razy na tej samej mapie. Testów jednostkowych trochę nie ma w tym momencie do czego pisać, ale może do rzeczy z drugiej części będzie się dało.

Cargo.toml Outdated
[dependencies]
bevy = "0.7"
bevy_rapier2d = "0.13.2"
rand = "*"
Copy link

Choose a reason for hiding this comment

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

Lepiej specyfikować major wersję

y: f32,
) {
commands
.spawn_bundle(SpriteBundle {
Copy link

Choose a reason for hiding this comment

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

Potwarza się ten kod, można wyciągnąć do funkcji (i w bevy chyba jaklś da się te bundle robić z parametrami?)

coffees: Query<Entity, With<Coffee>>,
mut collision_events: EventReader<CollisionEvent>,
) {
for collision_event in collision_events.iter() {
Copy link

Choose a reason for hiding this comment

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

Też się powtarza


pub fn insert_rust_at(
commands: &mut Commands,
player_textures: &Res<GameTextures>,
Copy link

Choose a reason for hiding this comment

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

Przecież to nie player textures

}
}

pub fn add_boosters(commands: &mut Commands, world: &[usize], player_texture: Res<GameTextures>) {
Copy link

Choose a reason for hiding this comment

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

Tutaj też: nie wiem skąd się to player wzięło

enemies: Query<Entity, With<Enemy>>,
mut collision_event: EventReader<CollisionEvent>,
) {
for collision_event in collision_event.iter() {
Copy link

Choose a reason for hiding this comment

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

To też powtórzony kod

src/game/map.rs Outdated
0.0,
))
.insert(RigidBody::Fixed)
.insert(Collider::cuboid(half_width, 0.5));
Copy link

Choose a reason for hiding this comment

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

Nie znam się jakoś dobrzr na grach, ale zgaduję, że robienie osobnego collidera na tile może być niewydajne

app.add_event::<MonsterWalkedIntoWallEvent>()
.add_system_set(
SystemSet::on_update(AppState::InGame)
.with_system(monster_walking_system)
Copy link

Choose a reason for hiding this comment

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

Niespójne nazewnictwo

mut collision_events: EventReader<CollisionEvent>,
mut send_monster_walked_into_wall: EventWriter<MonsterWalkedIntoWallEvent>,
) {
for collision_event in collision_events.iter() {
Copy link

Choose a reason for hiding this comment

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

Kolejny raz powtórzony kod...

mut query: Query<(Entity, &mut Jumper)>,
mut contact_events: EventReader<CollisionEvent>,
) {
for contact_event in contact_events.iter() {
Copy link

Choose a reason for hiding this comment

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

I raz jeszcze...

KatKlo and others added 30 commits June 19, 2022 20:47
# Conflicts:
#	src/game/audio.rs
#	src/game/bullets.rs
#	src/game/camera.rs
#	src/game/components.rs
#	src/game/map.rs
#	src/game/mod.rs
#	src/game/monster.rs
#	src/game/moster_ai.rs
#	src/game/player.rs
#	src/game/powerups.rs
#	src/game/utils.rs
#	src/main.rs
#	src/menu/mod.rs
#	src/menu/structs.rs
#	src/menu/systems.rs
#	src/menu/utils.rs
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.

3 participants