game: Party-Erstellung als Einstieg — Roster, Figurenmaske, UI-Probe
This commit is contained in:
parent
b47c392e85
commit
f8d8f56b86
16 changed files with 707 additions and 17 deletions
|
|
@ -18,6 +18,7 @@ func _ready() -> void:
|
|||
if args.has("--check"):
|
||||
get_tree().quit(0 if _selbstpruefung() else 1)
|
||||
return
|
||||
_ohne_erstellung = args.has("--ohne-erstellung")
|
||||
_bericht()
|
||||
_stadt()
|
||||
|
||||
|
|
@ -26,9 +27,26 @@ func _ready() -> void:
|
|||
var _aktuell: Node = null
|
||||
var _blende: ColorRect
|
||||
var _wechselnd := false
|
||||
var _ohne_erstellung := false
|
||||
|
||||
func _stadt() -> void:
|
||||
_blende_bauen()
|
||||
if _ohne_erstellung:
|
||||
Game.party_schnellstart()
|
||||
zeige_ortsbild()
|
||||
else:
|
||||
zeige_erstellung()
|
||||
|
||||
|
||||
## Start: Partyerstellung (docs/charaktererstellung.md). Das Roster ist
|
||||
## `Game.party`; die Szene meldet sich, wenn „Abenteuer beginnen" gedrückt wurde.
|
||||
func zeige_erstellung() -> void:
|
||||
Game.party_leeren()
|
||||
_wechsel_zu(load("res://scenes/creation/erstellung.tscn"), Callable(),
|
||||
func(k: Node) -> void: k.party_fertig.connect(_party_fertig))
|
||||
|
||||
|
||||
func _party_fertig() -> void:
|
||||
zeige_ortsbild()
|
||||
|
||||
|
||||
|
|
@ -229,6 +247,10 @@ func _selbstpruefung() -> bool:
|
|||
ok = _pruefe("Roster: Entfernen und neue id",
|
||||
Game.party_entfernen("pc_3") and Game.party.size() == 5
|
||||
and str(Game.party_aufnehmen(c.vorgabe()).get("id", "")) == "pc_3") and ok
|
||||
Game.party_leeren()
|
||||
Game.party_schnellstart()
|
||||
ok = _pruefe("Schnellstart: vier Figuren",
|
||||
Game.party.size() == 4 and Game.party_bereit()) and ok
|
||||
Game.party = sicherung
|
||||
|
||||
# Spielstand: schreiben, lesen, vergleichen.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue