High score
This is a mini game made with the Kree Game Engine
What you'll need
What you'll learn
Start off
Creating a Launcher Class
// Launcher.java
package avoid;
import dev.jabo.kree.Game;
import dev.jabo.kree.Scene;
import dev.jabo.kree.SceneManager;
import dev.jabo.kree.Window;
public class Launcher {
public static Game game = new Game(new Window("High Score", 800, 600));
public static MyScene myScene = new MyScene(game);
public static void main(String[] args) {
SceneManager.setScene(myScene);
game.start();
}
}Creating Scene
Adding variables
Initializing the player and adding WASD movement
Implementing Prefs
Updating the text with the high score
What to do next?
Congratulations on completing this tutorial!
Last updated