# Not Too Short Introduction to OOP

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

## Motivation

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.

## Objectives

• 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.

## Postup

### 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!

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.

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.

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!