Ich habe einen Score Actor hinzugefügt, welcher den Score oben im Bildschirm anzeigt und jede Sekunde um eins erhöht.

This commit is contained in:
2026-09-15 19:57:22 +02:00
parent 024738ff62
commit d7645d43f0
5 changed files with 42 additions and 0 deletions
+2
View File
@@ -30,6 +30,8 @@ public class MyWorld extends World
{
Player player = new Player();
addObject(player,302,320);
Score score = new Score();
addObject(score, 200, 50);
}
public void act()
{