Polish dialog and intro transitions
This commit is contained in:
parent
3975959017
commit
d413d1da9f
7 changed files with 228 additions and 4 deletions
|
|
@ -215,6 +215,26 @@ func move_to(world_pos: Vector2) -> void:
|
|||
_assign_slot_targets()
|
||||
|
||||
|
||||
# Moves the complete formation immediately while preserving every authored
|
||||
# slot. Unlike move_to(), this is a scene transition hidden behind a full
|
||||
# screen cover, not a travel order ships should visibly fly toward (#183).
|
||||
func teleport_to(world_pos: Vector2) -> void:
|
||||
var displacement: Vector2 = world_pos - get_formation_origin()
|
||||
for ship in ships:
|
||||
if not is_instance_valid(ship):
|
||||
continue
|
||||
ship.position += displacement
|
||||
ship.move_target += displacement
|
||||
ship.velocity = Vector2.ZERO
|
||||
ship.fleet_velocity = Vector2.ZERO
|
||||
steer_direction = Vector2.ZERO
|
||||
dash_remaining = 0.0
|
||||
dash_direction = Vector2.ZERO
|
||||
fleet_target = world_pos
|
||||
anchor = world_pos
|
||||
GameState.fleet_position = get_centroid()
|
||||
|
||||
|
||||
func move_in_direction(direction: Vector2) -> void:
|
||||
# Joystick steering. Sets the heading; _process advances the anchor.
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue