game: gedämpft realistisches Register + Blende zwischen den Registern
- stadt.gd: gedaempft ist Standard (Kacheln, gemalte Figuren, Grade); --grafik und --gemalt/--platte bleiben als Vergleich - Shader: Sättigung 0.72, Kontrast 0.95, Licht 0.65, Vignette 0.30 - main.gd: Blende 0.22 s aus, 0.06 s halten, 0.30 s ein - Karte: Ausgang auf (4,10), begehbar-Rechteck bis y=10 - probe_schleife nutzt das Kachel-Register; probe_wechsel prüft die Blende - Engine-Screenshot der gedämpften Fassung in art/prep/stilprobe
This commit is contained in:
parent
e2f6abefa2
commit
4848a814a9
12 changed files with 248 additions and 73 deletions
|
|
@ -12,14 +12,14 @@ func _ready() -> void:
|
|||
ortsbild.queue_free()
|
||||
|
||||
var stadt: Node = load("res://scenes/world/stadt.tscn").instantiate()
|
||||
stadt.set("gemalt", true)
|
||||
stadt.set("gedaempft", true)
|
||||
add_child(stadt)
|
||||
await get_tree().process_frame
|
||||
var zurueck := {"nein": false}
|
||||
stadt.zurueck.connect(func() -> void: zurueck["nein"] = true)
|
||||
|
||||
print("Start: ", stadt._spieler_kachel, " begehbar? ", stadt._begehbar(4, 8))
|
||||
stadt._spieler_kachel = Vector2i(4, 7)
|
||||
print("Ausgang (4,10) begehbar? ", stadt._begehbar(4, 10))
|
||||
stadt._spieler_kachel = Vector2i(4, 9)
|
||||
_taste(KEY_DOWN)
|
||||
await get_tree().process_frame
|
||||
print("nach unten: ", stadt._spieler_kachel, " | zurück ausgelöst: ", zurueck["nein"])
|
||||
|
|
|
|||
21
game/tools/probe_wechsel.gd
Normal file
21
game/tools/probe_wechsel.gd
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
extends Node
|
||||
## Prüft den ScreenManager mit Blende: Ortsbild → Gebiet → Ortsbild.
|
||||
##
|
||||
## Headless werden die Blenden übersprungen; für den echten Tween-Pfad
|
||||
## deshalb ohne `--headless` starten:
|
||||
## godot --path game res://tools/probe_wechsel.tscn
|
||||
|
||||
func _ready() -> void:
|
||||
var haupt: Node = load("res://main.tscn").instantiate()
|
||||
add_child(haupt)
|
||||
await get_tree().create_timer(0.8).timeout
|
||||
print("Start: ", haupt._aktuell.name if haupt._aktuell else "—")
|
||||
|
||||
haupt._gebiet_betreten("garana")
|
||||
await get_tree().create_timer(1.2).timeout
|
||||
print("nach Wechsel: ", haupt._aktuell.name if haupt._aktuell else "—")
|
||||
|
||||
haupt.zeige_ortsbild()
|
||||
await get_tree().create_timer(1.2).timeout
|
||||
print("zurück: ", haupt._aktuell.name if haupt._aktuell else "—")
|
||||
get_tree().quit()
|
||||
6
game/tools/probe_wechsel.tscn
Normal file
6
game/tools/probe_wechsel.tscn
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[gd_scene load_steps=2 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://tools/probe_wechsel.gd" id="1_probe"]
|
||||
|
||||
[node name="ProbeWechsel" type="Node"]
|
||||
script = ExtResource("1_probe")
|
||||
Loading…
Add table
Add a link
Reference in a new issue