Skip to content

Pathways

Extends: Node2D

Description

The parent class holding all Pathway of a Level.

Properties

Level Level

Methods

Pathway CreatePath ( Texture texture, int layer, int sorting, bool fadeIn, bool fadeOut, bool grow, bool shrink )
Dictionary[] Save ( )
void Load ( Dictionary[] data )
PatternShape LoadPathway ( Dictionary data )
void Resize ( int x, int y, int w, int h )

Property Descriptions

  • Level Level:
    The Level in which this class instance resides.

Method Descriptions

  • Pathway CreatePath ( Texture texture, int layer, int sorting, bool fadeIn, bool fadeOut, bool grow, bool shrink ):
    Creates a path with the following options and adds it as a child. For the parameter sorting, valid options are: 0 = Over, 1 = Under.

  • Dictionary[] Save ( ):
    Save all paths in this level as a list into the save file format and return it as an Array.

  • void Load ( Dictionary[] data ):
    Load a list of saved path data. Used by a saved map file to load existing paths.


  • void Resize ( int x, int y, int w, int h ):
    Called automatically when the canvas is resized. DO NOT CALL DIRECTLY. FOR REFERENCE ONLY.