api:documentation:ein_ausgabe:start
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
api:documentation:ein_ausgabe:start [2024/08/31 10:03] – angelegt - Externe Bearbeitung 127.0.0.1 | api:documentation:ein_ausgabe:start [2025/01/09 19:06] (aktuell) – [Textausgabe] martin | ||
---|---|---|---|
Zeile 50: | Zeile 50: | ||
println(" | println(" | ||
print(" | print(" | ||
- | println(" | + | println(" |
</ | </ | ||
Zeile 102: | Zeile 102: | ||
</ | </ | ||
+ | |||
+ | |||
+ | ===== Auf Tastendruck warten ===== | ||
+ | <WRAP center round info 60%> | ||
+ | Die Methode '' | ||
+ | * Übergibt man der Methode '' | ||
+ | </ | ||
+ | < | ||
+ | |||
+ | <div class=" | ||
+ | |||
+ | <script type=" | ||
+ | println(" | ||
+ | while(true){ | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | Auf diese Weise lässt sich auch interaktive Grafik verwirklichen: | ||
+ | |||
+ | < | ||
+ | |||
+ | <div class=" | ||
+ | |||
+ | <script type=" | ||
+ | println(" | ||
+ | Circle c = new Circle(400, 300, 50); | ||
+ | while(true){ | ||
+ | | ||
+ | | ||
+ | case Key.ArrowLeft: | ||
+ | case Key.ArrowRight: | ||
+ | case Key.ArrowUp: | ||
+ | case Key.ArrowDown: | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Noch besser geht es mit '' | ||
+ | |||
+ | < | ||
+ | |||
+ | <div class=" | ||
+ | |||
+ | <script type=" | ||
+ | SystemTools.setSpeed(2000); | ||
+ | println(" | ||
+ | Rectangle r = new Rectangle(350, | ||
+ | while (true) { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | r.rotate(1); | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | </ | ||
api/documentation/ein_ausgabe/start.1725098581.txt.gz · Zuletzt geändert: 2024/08/31 10:03 von 127.0.0.1