Skip to content

Level Screenshot Camera

Andrew Hernandez edited this page Jul 7, 2026 · 1 revision

System Summary

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

The level screenshot camera is an alternative camera within the editor state that's used to take a "screenshot" of the level when saving, and export it as an image file.


Connected Systems

List of connecting/parent/subsystems.

Connecting Systems:

Parent Systems:


Related Controls

List of related controls.

Editor Save Button:

  • Takes a screenshot of the level while exporting.

Bugs

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

  • While taking the screenshot, the app will zoom out and hide the UI for a single frame, which can be seen by the user when it happens.

Feature List / Breakdown of Features

List of features and descriptions within system.

Screenshot Functionality:

  • The camera is set up when a new level is created or a level is imported.
  • The camera will zoom out to display the entire level, adapting to any world size.
  • When clicking the export button, the camera is enabled for one frame, then an image is generated containing what it views, which is the entire level with the UI elements hidden.

Important Variables

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

  • masterManager : Node2D = A reference to the master manager (to obtain the level size).
  • baseCamera : Camera2D = A reference to the main camera.

Important Functions

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

  • func zoom_out() -> void: Zooms out this camera so it can view the entire level.
  • func get_level_screenshot() -> Image: Returns an image file containing what this camera is viewing.

Future Work / Risks

List and description of upcoming work/risks.

Future Work: N/A

Risks: N/A

Miscellaneous Notes

A place for miscellaneous notes pertaining to this system.

  • N/A

Clone this wiki locally