The Krektus Crash 2D Java Game

Click on the image to make it larger.
Click on the image to make it larger.

This is a 2D Java game that I made as a university project together with three other students. The goal of this project was to design a good user interface. Much work has been put into designing both the game itself and the menu system to make it as intuitive as possible.

In this game, the user controls an alien that has crash-landed on a distant planet called “Krektus”. The goal of the game is to defend the alien and the crashed spaceship from evil monsters and try to survive as long as possible. The game can not be won, but the player is given a score based on the number of monsters killed and the time that passed. The player can submit this score to a global high-score list that is saved in a database on a server (that server is not available anymore). The top ten list could be viewed in-game, and on a webpage. The beginning of the game is designed to be simple enough for a new player to survive to first waves of enemies, it then becomes harder over time. New attacks are introduced gradually at the beginning of the game to give new players a chance to learn how to use them.

The game runs on fullscreen and uses triple-buffered graphics. All images are rendered to the screen using the built-in Graphics2D library in Java. No Third-party library is used. The game’s native resolution is 1080×1920 pixels. If it runs on a screen with the wrong resolution it will be scaled to fit the screen, this may cause the game to look bad. The game menu is built using standard JFrames and JButtons with custom images and an appearance to give the desired look.

All images in the game are drawn specifically for it, and all sound effects and music tracks used are creative commons licensed or public domain.

Click on the image to make it larger.

Since there are other persons involved in this project, I have not done everything myself. I will not release the code here. If you are interested in specific parts of it, email me or comment below.

The playable game itself can be downloaded here: KrektusCrash.jar (78MB)

You will need to have Java installed to run it, and preferably a screen resolution of 1080×1920 pixels. The game is only tested on Windows machines.

Leave a Reply

Your email address will not be published. Required fields are marked *

Warning: Undefined array key "rerror" in /customers/b/a/5/ on line 291

This site uses Akismet to reduce spam. Learn how your comment data is processed.