Skip to content

Preview Line

Andrew Hernandez edited this page Jul 13, 2026 · 2 revisions

System Summary

Descriptive summary of what the system is and what it does.

Preview lines are UI elements in the editor state that show the movement path of a flying enemy or a moving platform.


Connected Systems

List of connecting/parent/subsystems.

Connecting Systems:

Parent Systems:


Bugs

List of known bugs. Be descriptive but keep it brief!

  • Preview line may disappear when zooming out too far

Feature List / Breakdown of Features

List of features and descriptions within system.

Preview Line:

  • Displays the plane where a flying enemy or moving platform will move.
  • Updates when the offset for its parent entity is changed via the property menu
  • Endpoint is an arrow that points in the direction of the movement path.

Important Variables

Name the most important variables, their type, and what their purpose is

  • endpoint : Sprite2D = An arrow sprite that rotates according to where the preview line points.
  • parent : Node2D = A reference to the parent entity.

Important Functions

Name of the most important functions, their parameters, and what they do.

  • func update(offset : Vector2) -> void: Updates the line's position, points and arrow direction.

Future Work / Risks

List and description of upcoming work/risks.

Future Work:

  1. N/A

Risks:

  • N/A

Miscellaneous Notes

A place for miscellaneous notes pertaining to this system.

  • N/A

Clone this wiki locally