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