Skip to content

UFO Invasion (Free Web Game) is a better version of the traditional "Space Invaders".

Notifications You must be signed in to change notification settings

wagnerjfr/space-invaders-lwjgl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Space-Invaders-LWJGL


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!

GIF

NOTE: the source code available is for the Java + LWJGL version.

Links:

Oficial WEB Game - UFO Invasion

History of the game


Videos:

YouTube Video Oficial - Java + PlayN

IMAGE ALT TEXT HERE

YouTube Video - Java + LWJGL

IMAGE ALT TEXT HERE


1. Running with Docker

1.1 Pulling the image from DockerHub and launching the container

Coming soon

1.2 Creating a local Docker images

⚠️ Not working

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 .

2. Running as Fat Java Jar

Linux

There is a java jar available to be executed.

Run the command below:

$ java -jar docker/Fat_UFO_Invasion.jar

Mac and Windows

For Mac and Windows, a new Fat jar need to be built.

Follow the instructions in docker/README.md file.


3. Installing in Eclipse:

  1. Clone the project:
git clone https://github.com/wagnerjfr/space-invaders-lwjgl.git
  1. Go into Eclipse then click "File" ⭢ "New" ⭢ "Java Project"

  2. Uncheck "use default location" and browse the project folder just cloned

  3. Follow the steps till the project is installed and available in Package Explorer on the left side of your screen

  4. Expand the project so it's possible to see src, lib and res folders.

  5. Right click on the "JRE System Library" of your project, and click "Build Path" ⭢ "Configure Build Path". alt text

  6. 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. alt text

  7. Click on "Edit...", which will be the only button is enabled in that general area.

  8. A file explorer will pop up. Select "Workspace..."

  9. The location is in the project folder inside the folder lib/natives. Select the folder according to your Operational System. alt text alt text

  10. Click in "Apply and Close" Button

  11. Right click in the project folder the "Run As" ⭢ "Java Application"

  12. A list of class files will appear, choose "InvadersMain - main", and click in "OK" alt text

  13. Follow the instructions in the screen and PLAY alt text

About

UFO Invasion (Free Web Game) is a better version of the traditional "Space Invaders".

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published