“Open Fighting” is a simple, pixel art 2D game created using OpenGL’s java wrapper, JOGL. The game is on 2-player mode (to be played using the same keyboard – ‘90s style).
There are currently 2 players designed for the game,
Kree | Bee |
---|---|
The game will go on until either player gets his health to zero
No additional configurations are needed to be done except for,
- Make sure JDK version 1.8 or higher is installed (or download JDK8 from here)
- Make sure Maven is installed (otherwise, download Maven from here)
Open Fighting is built using Maven framework to automate dependency management. So the steps to building the game from source are as following,
- Open a command prompt/terminal
- Navigate to the “OpenFighting” source directory
- Run the following commands :
mvn clean package
- Let maven download all the dependencies and create an executable jar file
- Open the source code from your favourite IDE and (after downloading dependencies via Maven) execute the “Main” class
- Navigate to “target” directory and double click on the “open-fighting-1.0-jar-withdependencies.jar” file to start the game or run the following command to execute the jar file through terminal :
java -jar open-fighting-1.0-jar-with-dependencies.jar
- Alternatively, download the executable jar file from releases and execute in the same manner or by just double clicking.
Keep shooting at your opponent using your power-up until his health reaches zero! Also, do not forget to dodge the opponent’s shots by moving around!
Game can be played using the same keyboard for both players, for the keys have been mapped separately (hard-coded) for the two players.
The game’s current implementation allows the players to move around the map (upwards, downwards, forwards and backwards) and use their unique power-up.
For the two players, the currently mapped keys are as following :
Kree | Bee | |
---|---|---|
Move Up | W | Up arrow |
Move Down | S | Down arrow |
Move Front | D | Left arrow |
Move Back | A | Right arrow |
Special Power | F | Enter |
Following is a demonstration of a live gameplay of OpenFighting
All credits go to the original authors of the resource files I have used in creation of OpenFighting, who and which are mentioned below :
Resource | Type | Author | License |
---|---|---|---|
Cyberpunk background | Texture (background) | ansimuz | Free |
Kree | Spritesheet | Asset Bakery | Free |
Bee | Spritesheet | Asset Bakery | Free |
Joystick Font | Font | Typodermic Fonts | Free |