diff --git a/.github/CONTRIBUTING b/.github/CONTRIBUTING index 8c9ee09..1710189 100644 --- a/.github/CONTRIBUTING +++ b/.github/CONTRIBUTING @@ -3,8 +3,7 @@ When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change. -The Source Code is located inside the "src" directory, since this is the default in VS Code.
-For the same reason, the Java Bytecode files (ending in .class) are located in the "bin" directory. +The Source Code is located inside the "src" directory, since this is the default in VS Code. You may use the "JPackage Command.bat" file located in the "utilities" directory to generate a new Installer in case you make a new release. Remember to edit it to use [Semantic Versioning](https://semver.org/), diff --git a/Breakout-Java.jar b/Breakout-Java.jar index 2925757..5c0f14d 100644 Binary files a/Breakout-Java.jar and b/Breakout-Java.jar differ diff --git a/Install Bricks Crusher.msi b/Install Bricks Crusher.msi index eaea4ec..c34138a 100644 Binary files a/Install Bricks Crusher.msi and b/Install Bricks Crusher.msi differ diff --git a/README.md b/README.md index 02f667e..e080288 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,10 @@ In case you do not use Windows, you may compile an Installer for your machine us [Install Breakout in Java](https://github.com/DevLBD/Breakout-Java/releases). +If you are on Windows, another easy way to install the game is through the [Microsoft Store](https://www.microsoft.com/it-it/p/bricks-crusher-break-the-bricks/). + +[](https://www.microsoft.com/it-it/p/bricks-crusher-break-the-bricks/) + ## Credits. The original authors of this awesome game. I had lots of fun re-developing it. \ diff --git a/compile/Breakout-Java.jar b/compile/Breakout-Java.jar index 2925757..5c0f14d 100644 Binary files a/compile/Breakout-Java.jar and b/compile/Breakout-Java.jar differ diff --git a/repo-img/MSbadge.png b/repo-img/MSbadge.png new file mode 100644 index 0000000..2eade75 Binary files /dev/null and b/repo-img/MSbadge.png differ diff --git a/src/GamePanel.java b/src/GamePanel.java index 848fab1..106260f 100644 --- a/src/GamePanel.java +++ b/src/GamePanel.java @@ -462,11 +462,11 @@ public class AL extends KeyAdapter{ public void keyPressed(KeyEvent e) { //paddle1.keyPressed(e); - if(e.getKeyCode() == KeyEvent.VK_LEFT && attractModeActive == false) { + if((e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_A) && attractModeActive == false) { paddle1.setDeltaX(-1); } - if(e.getKeyCode() == KeyEvent.VK_RIGHT && attractModeActive == false) { + if((e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_D) && attractModeActive == false) { paddle1.setDeltaX(+1); } @@ -481,11 +481,11 @@ public void keyPressed(KeyEvent e) { //questo metodo FERMA il paddle rilasciando il tasto, azzerando il DeltaX public void keyReleased(KeyEvent e) { - if(e.getKeyCode() == KeyEvent.VK_LEFT && attractModeActive == false) { + if((e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_A) & attractModeActive == false) { paddle1.setDeltaX(0); } - if(e.getKeyCode() == KeyEvent.VK_RIGHT && attractModeActive == false) { + if((e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_D) && attractModeActive == false) { paddle1.setDeltaX(0); } diff --git a/utilities/JPackage Command.bat b/utilities/JPackage Command.bat index 20d1c1f..68ffea2 100644 --- a/utilities/JPackage Command.bat +++ b/utilities/JPackage Command.bat @@ -1 +1 @@ -jpackage --verbose --type msi --input C:\Users\loren\Desktop\Coding\GitHub\Breakout-Java\compile --dest C:\Users\loren\Desktop\Coding\GitHub\Breakout-Java --main-jar C:\Users\loren\Desktop\Coding\GitHub\Breakout-Java\compile\Breakout-Java.jar --main-class Breakout --win-shortcut --icon C:\Users\loren\Desktop\Coding\GitHub\Breakout-Java\compile\Breakout-Icon.ico --name "Bricks Crusher" --app-version 1.2 --win-per-user-install --description "Bricks Crusher: Break the Bricks" --copyright "Copyright 2022 Lorenzo Barretta" --java-options '--enable-preview' \ No newline at end of file +jpackage --verbose --type msi --input C:\Users\loren\Desktop\Coding\GitHub\Breakout-Java\compile --dest C:\Users\loren\Desktop\Coding\GitHub\Breakout-Java --main-jar C:\Users\loren\Desktop\Coding\GitHub\Breakout-Java\compile\Breakout-Java.jar --main-class Breakout --win-shortcut --icon C:\Users\loren\Desktop\Coding\GitHub\Breakout-Java\compile\Breakout-Icon.ico --name "Bricks Crusher" --app-version 1.3 --win-per-user-install --description "Bricks Crusher: Break the Bricks" --copyright "Copyright 2022 Lorenzo Barretta" --java-options '--enable-preview' \ No newline at end of file