1.3-Object-Georienteerd-Programmeren

SaxionApp GameLoop Project setup

If you want to create a Java project using the SaxionApp Gameloop features you need to do some setup first.

Before you setup your project, make sure you have a little understanding of the GameLoop concept that is introduced in the SaxionApp. Some of you might recognize it from IT’s in the game. If not, please watch the following videos:

We are going to start a new project from scratch (so, no template) and import the SaxionApp library.

Step 1: Create a project

Create a new project named ChillyGame. Use at least JDK version 17

N.b. In this example I add it to my desktop. You can do better! Organize your projects for this course! This project runs for multiple weeks so maybe add it to the root of you OOP folder Step 1

Step 2: Make a nice hello world prompt

To test if everything is ok, just start with a nice hello world prompt.

N.b. A main method is the first things that Java runs when you start your program, in there is the start of your program

Step 3: Download and add the SaxionApp JAR file

A JAR file is a library. A library is set of classes and methods that can be used to extend the functionality of Java.

Step 4: Configure your project

To let Java know that you use a library you must configure your project.

Now you have added a lot of classes and functionality that we created to your project. Let’s use it!

Use the Gameloop