mirror of
https://inf.pirckheimer-gymnasium.de/kebab/kebab
synced 2026-08-26 16:31:23 +00:00
Implementation of Loading Screen started
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user