mirror of
https://inf.pirckheimer-gymnasium.de/kebab/kebab
synced 2026-09-25 16:34:28 +00:00
Implementation of Loading Screen started
This commit is contained in:
1 parent
de05b64678
commit
c8ce92de28
3 files changed
+23
-2
No files matched your search
@@ -7,6 +7,7 @@ public class Main
|
|||||||
{
|
{
|
||||||
public static void main(String[] args)
|
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;
|
package project.scenes;
|
||||||
|
|
||||||
|
import pi.Camera;
|
||||||
import pi.Scene;
|
import pi.Scene;
|
||||||
|
import pi.Text;
|
||||||
|
import static pi.Controller.fonts;
|
||||||
|
import java.awt.Font;
|
||||||
|
|
||||||
public class LoadingScene extends Scene
|
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