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

Move collision merge attack #33

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

qwet1235
Copy link
Collaborator

@qwet1235 qwet1235 commented Dec 7, 2022

No description provided.

kevinzshen
kevinzshen previously approved these changes Dec 7, 2022
Copy link
Collaborator

@kevinzshen kevinzshen left a comment

Choose a reason for hiding this comment

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

Added code looks clean and code follows Clean Architecture and SOLID principles. Great job with your documentation in Attack.java. It made it significantly easier to understand the functionality of each function. Small note, I think there is some commented out code in the MeleeEnemy.java file that should be removed. Overall great job!

Comment on lines 34 to 36
private void enemyMovement() { //In order to update current enemy location must update absXenemy.
distance = Math.sqrt((Math.pow((gamePanel.player.getAbsXPlayer() - xEnemy - spawnX + 1896),2) + Math.pow((gamePanel.player.getAbsYPlayer() - yEnemy -spawnY + 1046), 2)));
if (distance < 600 & distance > 110) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the code block that I was referring to in my previous comment. This chunk of commented out code should be removed.

Comment on lines 78 to 80
//TODO: Abu
// - Remove Player from gamePanel
// - Implement CLEAN way of changing velocity following SOLID PRINCIPLES
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think these TODOs are very helpful in making sure everyone know what they need to focus on. I think we should make this a standard if possible.

@khushil-sketch khushil-sketch self-requested a review December 7, 2022 06:31
khushil-sketch
khushil-sketch previously approved these changes Dec 7, 2022
Copy link
Collaborator

@khushil-sketch khushil-sketch left a comment

Choose a reason for hiding this comment

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

I like the comments on the Attack class code, makes it easier to follow the methods that you have written and we should make this a standard for the rest of the use cases.

jaffarkeikei
jaffarkeikei previously approved these changes Dec 7, 2022
Copy link
Collaborator

@jaffarkeikei jaffarkeikei left a comment

Choose a reason for hiding this comment

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

Super cool! The animations are amazing. I admire the separation of policies from the details of your code implementation. You could improve that further in future by increasing more cohesion with the commonalities between the different types of enemies. Great job, overall!

@qwet1235
Copy link
Collaborator Author

qwet1235 commented Dec 7, 2022

SORRYYY PLEASE ADD MORE REVIEWS CAUSE I ACCIDENTALLY COMMITTED STUFF I SHOULDNT HAVEEE!!!! ITS STILL THE SAME AS BEFORE THE LAST COMMIT. YALLS CAN JUST LEAVE THE SAME REVIEW COMMENT FROM THE LAST ONE

khushil-sketch
khushil-sketch previously approved these changes Dec 7, 2022
Copy link
Collaborator

@khushil-sketch khushil-sketch left a comment

Choose a reason for hiding this comment

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

I like the comments on the Attack class code, makes it easier to follow the methods that you have written and we should make this a standard for the rest of the use cases. I forgive you for accidentally committing :)

jaffarkeikei
jaffarkeikei previously approved these changes Dec 7, 2022
Copy link
Collaborator

@jaffarkeikei jaffarkeikei left a comment

Choose a reason for hiding this comment

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

Super cool! The animations are amazing. I admire the separation of policies from the details of your code implementation. You could improve that further in future by increasing more cohesion with the commonalities between the different types of enemies. Great job, overall!

@qwet1235 qwet1235 dismissed stale reviews from jaffarkeikei and khushil-sketch via 07874a1 December 7, 2022 09:37
@qwet1235
Copy link
Collaborator Author

qwet1235 commented Dec 7, 2022

This is not done. There are still some methods that need to be updated after the other use cases get implemented.

@qwet1235 qwet1235 self-assigned this Dec 8, 2022
@qwet1235 qwet1235 added the enhancement New feature or request label Dec 8, 2022
@qwet1235 qwet1235 requested a review from SoySerhio507 December 8, 2022 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature 5.1] Player attacks monster [Feature 5.2] Monster attacks player
4 participants