Skip to content

Commit

Permalink
Introducing Version 1.3.
Browse files Browse the repository at this point in the history
Bricks Crusher Version 1.3 is out now!

Here's what's new.

 - Improvements: users are now able to use the "A" and "D" keys too to control the paddle, if they'd like;
 - Improvements: improved store listing.
  • Loading branch information
Bavuett committed May 1, 2022
1 parent 8d31fbc commit 053f529
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/CONTRIBUTING
Original file line number Diff line number Diff line change
Expand Up @@ -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. <br>
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/),
Expand Down
Binary file modified Breakout-Java.jar
Binary file not shown.
Binary file modified Install Bricks Crusher.msi
Binary file not shown.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).

[<img src="https://raw.githubusercontent.com/DevLBD/Breakout-Java/main/repo-img/MSbadge.png" width="200px"/>](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. \
Expand Down
Binary file modified compile/Breakout-Java.jar
Binary file not shown.
Binary file added repo-img/MSbadge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/GamePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion utilities/JPackage Command.bat
Original file line number Diff line number Diff line change
@@ -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'
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'

0 comments on commit 053f529

Please sign in to comment.