Implementation of Loading Screen started

This commit is contained in:
2026-06-15 09:31:19 +02:00
parent de05b64678
commit c8ce92de28
3 changed files with 23 additions and 2 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ public class Main
{
public static void main(String[] args)
{
Controller.start(new LoadingScene());
Controller.instantMode(false);
Controller.start(new LoadingScene(), 1000, 600);
}
}
+21 -1
View File
@@ -1,8 +1,28 @@
package project.scenes;
import pi.Camera;
import pi.Scene;
import pi.Text;
import static pi.Controller.fonts;
import java.awt.Font;
public class LoadingScene extends Scene
{
private Text title;
private Text subtitle;
public LoadingScene() {
title = new Text("Royal Kebab");
subtitle = new Text("Loading...");
Font font = fonts.get("Fonts/BitcountGridDouble-Regular.ttf");
title.anchor(0, 0);
title.font(font);
subtitle.anchor(0, -2);
subtitle.font(font);
add(title);
add(subtitle);
}
}