UFO Invasion (Free Web Game) is a better version of the traditional "Space Invaders". UFO Invasion is a two-dimensional shooter game in which the player controls an space aircraft by moving it horizontally across the bottom of the screen and firing at descending aliens. The aim is to defeat all aliens that move back and forth across the screen as they advance towards the bottom of the screen (the Earth planet!). The player fights against an alien by shooting it with rockets launched by the space aircraft. Defeating the aliens brings another wave that is more difficult, in a loop which can continue indefinitely!
Fly through space, defend your planet, destroy aliens.. Have fun!
NOTE: the source code available is for the Java + LWJGL version.
Oficial WEB Game - UFO Invasion
Coming soon
If the Fat jar (Section 2 below) is running fine in your environment, it's possbile to build a local Docker image by running:
$ docker build -t space-invaders-lwjgl -f docker/Dockerfile .
There is a java jar available to be executed.
Run the command below:
$ java -jar docker/Fat_UFO_Invasion.jar
For Mac and Windows, a new Fat jar need to be built.
Follow the instructions in docker/README.md
file.
- Clone the project:
git clone https://github.com/wagnerjfr/space-invaders-lwjgl.git
-
Go into Eclipse then click "File" ⭢ "New" ⭢ "Java Project"
-
Uncheck "use default location" and browse the project folder just cloned
-
Follow the steps till the project is installed and available in Package Explorer on the left side of your screen
-
Expand the project so it's possible to see src, lib and res folders.
-
Right click on the "JRE System Library" of your project, and click "Build Path" ⭢ "Configure Build Path".
-
Include the LWJGL native libraries to your project in the Build Path Configured by clicking the "Native library location" which can be seen in the JRE System Library dropdown menu.
-
Click on "Edit...", which will be the only button is enabled in that general area.
-
A file explorer will pop up. Select "Workspace..."
-
The location is in the project folder inside the folder lib/natives. Select the folder according to your Operational System.
-
Click in "Apply and Close" Button
-
Right click in the project folder the "Run As" ⭢ "Java Application"
-
A list of class files will appear, choose "InvadersMain - main", and click in "OK"