Skip to content

Preview Line

Theo Ruefli edited this page Jul 24, 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

Important Variables

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

  • startpoint : Sprite2D = A sprite that originates at the center of the tile of its parent entity.
  • endpoint : Sprite2D = A 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 and points 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