Added point where the issue happened

This commit is contained in:
2026-06-18 14:23:50 +02:00
parent bc4a42275b
commit b6cd8ee4c1
+15 -3
View File
@@ -3,6 +3,8 @@ package project.scenes;
import pi.Camera; import pi.Camera;
import pi.Scene; import pi.Scene;
import pi.Text; import pi.Text;
import pi.actor.Image;
import static pi.Controller.fonts; import static pi.Controller.fonts;
import java.awt.Font; import java.awt.Font;
@@ -10,19 +12,29 @@ public class LoadingScene extends Scene
{ {
private Text title; private Text title;
private Text subtitle; private Text subtitle;
private String subtitle_content;
private Image tatli;
public LoadingScene() { public LoadingScene() {
title = new Text("Royal Kebab"); title = new Text("Royal Kebab");
subtitle = new Text("Loading..."); subtitle_content = "Loading";
subtitle = new Text(subtitle_content);
tatli = new Image("images/kebab-pack/tatli-ekmek-256x256.png");
Font font = fonts.get("Fonts/BitcountGridDouble-Regular.ttf"); Font font = fonts.get("Fonts/BitcountGridDouble-Regular.ttf");
title.anchor(0, 0); title.center(0, 3);
title.font(font); title.font(font);
subtitle.anchor(0, -2);
subtitle.center(0, -3);
subtitle.font(font); subtitle.font(font);
tatli.center(0,0);
add(title); add(title);
add(subtitle); add(subtitle);
add(tatli);
repeat(0.3, (counter) -> subtitle.content(subtitle_content + ".".repeat(counter)));
} }
} }