Author SHA1 Message Date
privacynerd b6cd8ee4c1 Added point where the issue happened 2026-06-18 14:23:50 +02:00
+15 -3
View File
@@ -3,6 +3,8 @@ package project.scenes;
import pi.Camera;
import pi.Scene;
import pi.Text;
import pi.actor.Image;
import static pi.Controller.fonts;
import java.awt.Font;
@@ -10,19 +12,29 @@ public class LoadingScene extends Scene
{
private Text title;
private Text subtitle;
private String subtitle_content;
private Image tatli;
public LoadingScene() {
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");
title.anchor(0, 0);
title.center(0, 3);
title.font(font);
subtitle.anchor(0, -2);
subtitle.center(0, -3);
subtitle.font(font);
tatli.center(0,0);
add(title);
add(subtitle);
add(tatli);
repeat(0.3, (counter) -> subtitle.content(subtitle_content + ".".repeat(counter)));
}
}