flightcrank / Asteroids-JOGL

This is another Asteroids game, but this time in OpenGL !

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asteroids JOGL

This is a simple OpenGL program coded in Java using JOGL to recreate the classic Asteroids game using the OpenGL Graphics API.

Its working and ready to use if you wish. Its pretty much at version 1.0 so active development has stopped. However I will still continue to support it, so feel free to contact me with any issues or feature requests.

In order to compile, the JOGL libs must be available on the java classpath. The jogl libs can be found at https://jogamp.org/deployment/v2.3.2/archive/jogamp-all-platforms.7z It also uses the tinysound lib, which is included, to play the soundeffects. The license for which is inside the tinysound jar file.

Compilation instructions on a linux system are as follows... (browse to the src directory)

$ javac -cp .:path_to_jogl/jar/jogl-all.jar:path_to_jogl/jar/gluegen-rt.jar:tinysound-1.1.1.jar AsteroidsJOGL.java 

that should compile all necessary .java files. (make sure to change "path_to_jogl" with the path to where you unzipped the jogl jar's too)

to run the program, type the command

$ java -cp .:path_to/jogl/jar/jogl-all.jar:path_to/jogl/jar/gluegen-rt.jar:tinysound-1.1.1.jar AsteroidsJOGL

Images

Imgur

About

This is another Asteroids game, but this time in OpenGL !


Languages

Language:Java 96.5%Language:GLSL 3.5%