-
-
Notifications
You must be signed in to change notification settings - Fork 140
Added list of contributors #289
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: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
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.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
💄Spotless - Format
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/CreditsMenu.java
Line 265 in 8e91273
| loadAvatarAsync(avatarUrl, avatarView); |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/CreditsMenu.java
Lines 267 to 268 in 8e91273
| return avatarView; | |
| } |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/CreditsMenu.java
Line 270 in 8e91273
| private Label createUsernameLabel(String username) { |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/CreditsMenu.java
Lines 273 to 277 in 8e91273
| "-fx-font-family: 'Public Pixel';" | |
| + "-fx-font-size: 14px;" | |
| + "-fx-text-fill: #00FF00;" | |
| + "-fx-font-weight: bold;" | |
| + "-fx-effect: dropshadow(gaussian, black, 4, 1.0, 0, 0);"); |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/CreditsMenu.java
Line 283 in 8e91273
| } |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/CreditsMenu.java
Lines 285 to 340 in 8e91273
| private Label createContributionsLabel(int contributions) { | |
| String text = contributions + " " + languageManager.getTranslation("commits"); | |
| Label label = new Label(text); | |
| label.setStyle( | |
| "-fx-font-family: 'Public Pixel';" | |
| + "-fx-font-size: 12px;" | |
| + "-fx-text-fill: #FFFF00;" | |
| + "-fx-font-weight: bold;" | |
| + "-fx-effect: dropshadow(gaussian, black, 3, 1.0, 0, 0);"); | |
| return label; | |
| } | |
| private void setupHoverEffect(VBox box) { | |
| box.setOnMouseEntered( | |
| e -> { | |
| box.setStyle( | |
| "-fx-background-color: rgba(0, 80, 0, 0.98);" | |
| + "-fx-background-radius: 10;" | |
| + "-fx-border-color: rgba(0, 255, 0, 1);" | |
| + "-fx-border-width: 3;" | |
| + "-fx-border-radius: 10;" | |
| + "-fx-effect: dropshadow(gaussian, rgba(0, 255, 0, 0.9), 15, 0.8, 0, 0);"); | |
| box.setCursor(javafx.scene.Cursor.HAND); | |
| }); | |
| box.setOnMouseExited( | |
| e -> box.setStyle( | |
| "-fx-background-color: rgba(0, 0, 0, 0.8);" | |
| + "-fx-background-radius: 10;" | |
| + "-fx-border-color: rgba(0, 220, 0, 0.5);" | |
| + "-fx-border-width: 1;" | |
| + "-fx-border-radius: 10;")); | |
| } | |
| private void loadAvatarAsync(String avatarUrl, ImageView avatarView) { | |
| CompletableFuture.supplyAsync( | |
| () -> { | |
| try { | |
| return new Image(avatarUrl, AVATAR_SIZE, AVATAR_SIZE, true, true, true); | |
| } catch (Exception e) { | |
| return createPlaceholderAvatar(); | |
| } | |
| }) | |
| .thenAccept(image -> Platform.runLater(() -> avatarView.setImage(image))); | |
| } | |
| private Image createPlaceholderAvatar() { | |
| try { | |
| InputStream stream = getClass().getResourceAsStream(GameConstants.GAME_LOGO_DINOSAUR); | |
| if (stream != null) { | |
| return new Image(stream, AVATAR_SIZE, AVATAR_SIZE, true, true); | |
| } | |
| } catch (Exception e) { | |
| System.err.println("Error loading placeholder: " + e.getMessage()); | |
| } | |
| return null; |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/CreditsMenu.java
Line 342 in 8e91273
| } |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/DinosaurMenu.java
Line 19 in 8e91273
| import javafx.animation.TranslateTransition; |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/DinosaurMenu.java
Line 21 in 8e91273
| import javafx.geometry.Insets; |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/DinosaurMenu.java
Lines 34 to 35 in 8e91273
| import javafx.scene.text.Text; | |
| import javafx.scene.effect.DropShadow; |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/DinosaurMenu.java
Line 38 in 8e91273
| import javafx.util.Duration; |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/DinosaurMenu.java
Line 50 in 8e91273
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/DinosaurMenu.java
Line 99 in 8e91273
| backgroundView, titlePane, dinoImage, creditsBadge, muteIcon, languageBox, volumeSlider, volumeText); |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/DinosaurMenu.java
Lines 180 to 182 in 8e91273
| badge.setOnMouseClicked(event -> { | |
| FXGL.getSceneService().pushSubScene(new CreditsMenu()); | |
| }); |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/DinosaurMenu.java
Lines 185 to 189 in 8e91273
| badge.setOnMouseEntered(event -> { | |
| badge.setScaleX(1.2); | |
| badge.setScaleY(1.2); | |
| badge.setCursor(javafx.scene.Cursor.HAND); | |
| }); |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/DinosaurMenu.java
Lines 191 to 194 in 8e91273
| badge.setOnMouseExited(event -> { | |
| badge.setScaleX(1.0); | |
| badge.setScaleY(1.0); | |
| }); |
[💄Spotless - Format] reported by reviewdog 🐶
dinosaur-exploder/src/main/java/com/dinosaur/dinosaurexploder/view/DinosaurMenu.java
Line 353 in 8e91273
| background, title, startButton, quitButton, dino, creditsBadge, mute, volumeText, volume, language);; |
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.
👋 Hello @jamiya-begam-k-17, thank you for submitting in Dinosaur Exploder 🦖 PR! To allow your work to be integrated as seamlessly as possible, we advise you to:
- ✅ Verify your PR is up-to-date with the repository
/dinosaur-explodermainbranch. If your PR is behind you can update your code by clicking the 'Update branch' button or by runninggit pullandgit merge masterlocally. - ✅ Verify all Dinosaur Exploder Continuous Integration (CI) checks are passing.
- ✅ Verify that you have well fill out the different checkboxes in the PR template.
⚠️ Check that your code is clean: no code redundancy, variable and method names are correct, your code is understandable to everyone, and so on.- 💡 Reduce changes to the absolute minimum required for your bug fix or feature addition. "It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is." — Bruce Lee
✅ Code Formatting Check Passed!Great job! 🎉 Your code follows the Google Java Style Guide. 🤖 The DinoBot Team 🦖 |
Build preview 🚀Thanks for your contribution to this open-source project! ❤️ A new build has been generated for this pull request:
Tip This JAR lets you test the latest version of the game from this PR. ⏳ Note: Artifacts auto-expire after ~90 days. Happy testing & enjoy the game! 🎮 The DinoBot Team 🦖 |
|
That's so insane from what I see on your screenshot. Unfortunately I am on holidays so looking from my phone. I will review it mid january ' But I can say good work, I like it ! Please just fix the Sonarqube issues : https://sonarcloud.io/project/issues?issueStatuses=OPEN%2CCONFIRMED&pullRequest=289&types=BUG&severities=BLOCKER%2CCRITICAL%2CMAJOR%2CMINOR&inNewCodePeriod=true&sinceLeakPeriod=true&id=jvondermarck_dinosaur-exploder |
Hello, So would you be okay with excluding JavaFX CSS files from SonarQube analysis or ok with default white scroll bar or do you prefer another approach here? Happy to follow your recommendation. |
# Conflicts: # src/main/resources/assets/translation/english.json # src/main/resources/assets/translation/french.json # src/main/resources/assets/translation/german.json # src/main/resources/assets/translation/greek.json # src/main/resources/assets/translation/japanese.json # src/main/resources/assets/translation/portuguese.json # src/main/resources/assets/translation/russian.json # src/main/resources/assets/translation/spanish.json
|
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.
Hey, I excluded the css files to be executed by Sonar !
I also updated the code to remove the grid if there is the loading or the error in the credits. So it avoids taking empty spaces so now there isn't anymore the big empty space between the subtitle and the grid if there is no loading and no error message.
Now there are 5 sonar issues to fix, I guess you can easily solve them, please tell me if you need help !! @jamiya-begam-k-17 -> https://sonarcloud.io/project/issues?id=jvondermarck_dinosaur-exploder&pullRequest=289&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true



✅ PR Checklist
Tip
Please check the boxes below to confirm you followed the contribution guidelines:
[Type]: clear description of changetype: Feature, Fix, Refactor, Docs, Test, Chore📝 What does this PR do?
🔗 Related Issue
📸 Screenshots / Demos (if applicable)
💬 Extra Notes (Optional)
❤️ Thanks again for your contribution to Dinosaur Exploder!
Your efforts help make this project awesome for everyone. 🦖✨