game: Ausgang sichtbar machen — Tor, Goldrahmen, AUSGANG
Der Ausgang lag auf einem unsichtbaren Feld. Jetzt: Tor-Sprite auf (9,9), Goldrahmen auf dem Ausgangsfeld (9,10), Label AUSGANG daneben; Probe und README nachgezogen.
This commit is contained in:
parent
4848a814a9
commit
a0160795f4
5 changed files with 49 additions and 7 deletions
|
|
@ -18,11 +18,11 @@ func _ready() -> void:
|
|||
var zurueck := {"nein": false}
|
||||
stadt.zurueck.connect(func() -> void: zurueck["nein"] = true)
|
||||
|
||||
print("Ausgang (4,10) begehbar? ", stadt._begehbar(4, 10))
|
||||
stadt._spieler_kachel = Vector2i(4, 9)
|
||||
_taste(KEY_DOWN)
|
||||
print("Ausgang (9,10) begehbar? ", stadt._begehbar(9, 10))
|
||||
stadt._spieler_kachel = Vector2i(8, 10)
|
||||
_taste(KEY_RIGHT)
|
||||
await get_tree().process_frame
|
||||
print("nach unten: ", stadt._spieler_kachel, " | zurück ausgelöst: ", zurueck["nein"])
|
||||
print("nach rechts: ", stadt._spieler_kachel, " | zurück ausgelöst: ", zurueck["nein"])
|
||||
get_tree().quit()
|
||||
|
||||
func _taste(code: int) -> void:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue