Not Too Short Introduction to OOP

Get to know Object Oriented Programming by playing the Alien Breed game


The goal of this lab is to successfully finish the prepared game AlienBreed and to get acquainted with some of the basic principles of object oriented programming along the way. Apart from learning something, you will also became familiar with the principles of the type of the game that will represent the subject of assignments in this course.


  • To master AlienBreed game rules.
  • To understand objects and classes by playing the AlienBreed game.
  • To get familiar with class diagram.
  • TO get familiar with data encapsulation.


Step 1: Let's rock!

Your task is to play and win the AlienBreed game. Playing time is set to 45 minutes. Do not forget the game is educational and there are other objectives than to shoot all the aliens as fast as possible. Good luck, player!

Task 1.1

Download the AlienBreed game from this link.

Task 1.2

Launch the game and proceed according to guides that will appear in the game.

If you are using Linux, double-clicking on the downloaded file will probably not be enough. To run the game, open terminal window in the directory where the .jar file with game is downloaded and run the following command:

java -jar alienbreed-intro.jar

If the game does not start, the most likely problem is that you do not have Java (JRE) installed. In that case, you will need to install it for your operating system.

Step 2: Ready, steady, go!

This course will not be just about playing games, of course. To be ready to start programming the next week, you will need to prepare required software on your system before the next week's lab.

Task 2.1

Install SDK of the Java 10 language, also known as Java Development Kit (JDK) 10, for your operating system.

Java SDK is available, for example, from Oracle, but you can also use your system's package manager (apt, dnf, ...). Either way, make sure you are installing JDK in version 10!

Task 2.2

Install the IntelliJ IDEA development environment.

For our labs, open source version IntelliJ IDEA Community Edition will suffice. As students, you have the possibility to use for free and solely for educational purposes also the otherwise paid IntelliJ IDEA Ultimate version, after creating a JetBrains account using your university email address.


If you already have IntelliJ IDEA installed, check that you have at least version 2018.2. If you have an older version, please update it to the newest one.

Additional links