Sixteen quests that walk a new game through the things it contains: ore,
the mothership, exploration, a yard and a second hull, planetfall and
conquest, extractors, gas, freight, power, the lab, a new vessel type, an
outpost, and a survey.
The chain turns on the second quest. The fleet builds the mothership to
call the World Ship and hears nothing - and the array is not at fault. The
breach put them further out than that signal will carry, so every quest
after it is a search that has to be flown rather than transmitted.
Three pieces:
Quests.gd the chain, as data and nothing else. Two rules it obeys:
nothing may ask for something unreachable - research points
come only from conquering a planet, so every doctrine that
costs them sits after the conquest quest - and a quest names
one goal, with the research it implies said in the brief
rather than split into an errand of its own.
GameState how far along the chain the player is, and the answer to each
goal kind. Progress latches for free: the chain is walked one
quest at a time, so collecting five ore and spending it cannot
un-complete the quest that asked for five - by then nothing is
asking. It lives here so a quest finished on a planet surface
is still finished after take-off.
the HUD QuestTracker, the standing objective, in the wave alert's
idiom; QuestDirector, which reads the lines out.
Lines are QUEUED by GameState and drained by the director rather than
emitted at a banner, because quests advance in the autoload, which runs on
a planet surface too - where a line emitted straight at a banner would be
lost. Both scenes now carry a banner, a tracker and a director, so a quest
finished underground is announced underground.
The chain is armed by reset_new_game(), the same gate the prologue uses -
the only door into a real game - so instantiating a scene is not by itself
a reason to start briefing somebody.
This commit is contained in:
parent
1e89780bd7
commit
397983b611
13 changed files with 917 additions and 4 deletions
|
|
@ -129,6 +129,11 @@ func _on_enter_pressed() -> void:
|
|||
GameState.planet_name = current_planet.planet_name
|
||||
GameState.planet_id = current_planet.planet_id
|
||||
GameState.planet_definition_id = current_planet.definition_id
|
||||
# #133: quests ask about worlds LANDED ON, which is a different question
|
||||
# from the ones flown past that explored_chunks answers. Recorded at the
|
||||
# moment of committing to the descent - the same moment the three lines
|
||||
# above are written - so the two can never disagree.
|
||||
GameState.note_planet_visited(current_planet.planet_id, current_planet.definition_id)
|
||||
|
||||
var tween: Tween = create_tween()
|
||||
tween.tween_property(fade_rect, "color:a", 1.0, fade_duration)
|
||||
|
|
|
|||
Loading…
Reference in a new issue