diff --git a/.classpath b/.classpath index 2daff1b..6183517 100644 --- a/.classpath +++ b/.classpath @@ -1,16 +1,32 @@ - - + - + - + + + + + + + + + + + + + + + + + + diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 0000000..88a9dd5 --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,7 @@ +# How to install Boulevard Combattant? + +To run Boulevard Combattant, simply get the [latest release](https://gitlab.istic.univ-rennes1.fr/fautin/jeu-de-combat/-/releases) and run the executable JAR. You need Java >8 installed on your computer. All libraries are packaged within the JAR. + +# How to build Boulevard Combattant? + +This project is managed via Maven. To build, simply clone the project, and run `mvn package` in the root directory of the cloned project. A JAR will be generated in `${project_folder}/target`. This project can also be imported in your prefered IDE. To run the game, run the Main class located in the default package. diff --git a/README.md b/README.md index 82ebbd6..b8171ce 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,18 @@ Developed in the context of an end-of-year project at ISTIC (2020/2021) ![In-Game screenshot](docs/game_screenshot.png) +Currently, only a single character is playable. However, the engine allows for easy expansion in the future. + +## How to play? + +Set your preferences in the launcher window, plug-in two DirectInput or XInput capable controllers in your computer, and press start! Use the left analog stick or the D-Pad to move, and the four face buttons for kick and punch, neo-geo style. + +Blue, the main character, knows some advanced martial arts techniques, which can be unlocked through special combinaisons ;). + +## How to install / build? + +Please refer to [INSTALL.md](https://gitlab.istic.univ-rennes1.fr/fautin/jeu-de-combat/-/blob/master/INSTALL.md). + ## Technologies used by the project * Java @@ -14,7 +26,7 @@ Developed in the context of an end-of-year project at ISTIC (2020/2021) * OpenAL via [lwjgl](https://www.lwjgl.org/) * [JavaFX](https://openjfx.io) -## Contributors +## Authors * [François AUTIN](https://gitlab.istic.univ-rennes1.fr/fautin) * [Victor AZRA](https://gitlab.istic.univ-rennes1.fr/vazra) diff --git a/pom.xml b/pom.xml index 0d795e3..f6b292d 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ maven-compiler-plugin 3.8.1 - 11 + 8 @@ -29,17 +29,42 @@ org.apache.maven.plugins maven-jar-plugin - 3.1.0 + 3.2.0 + Main true lib/ - Main + + + org.apache.maven.plugins + maven-assembly-plugin + 3.1.1 + + + + Main + + + + jar-with-dependencies + + + + + make-assembly + package + + single + + + + diff --git a/src/main/java/gameplay/match/match.java b/src/main/java/gameplay/match/match.java index 266e9d5..dd1257a 100644 --- a/src/main/java/gameplay/match/match.java +++ b/src/main/java/gameplay/match/match.java @@ -397,10 +397,19 @@ public class match { case 21: try { handleThrows(p1, p2); - handleThrows(p2,p1); + } catch (IndexOutOfBoundsException e) {} try { handleHits(p1, p2, inputsP2); + + }catch (IndexOutOfBoundsException e) {}; + + try { + + handleThrows(p2,p1); + } catch (IndexOutOfBoundsException e) {} + try { + handleHits(p2, p1, inputsP1); }catch (IndexOutOfBoundsException e) {}; acCode = 22;