Game Levels

  • The base class for a given level.

    Requires

    A tile map node called “Tile Map Node”. Automapping should be disabled, and the tileset should be “Costumemaster Default”.

    Requires

    A camera node called “Camera”.

    Requires

    Level configuration data in the scene’s user data. See also: LevelDataConfiguration.
    See more

    Declaration

    Swift

    class GameScene : SKScene
  • A data structure used to determine the properties of a level based on a user data dictionary.

    The user data dictionary requires the following fields:

    • exitAt field: (String) determines column and row coordinates to the exit node.
    • availableCostumes field: (Int) determines which costumes are available.
    • levelLink field: (String) determines the next scene to display after this scene ends.
    • startingCostume field: (String) determines which costume the player starts with.
    • requisite_COL_ROW field(s): (String) determines what outputs require certain inputs.

    These fields are not required but can be added to extend the configuration:

    • achievementTrigger field: (String) determines the achievement to trigger when passing through an achievement trigger.
    • timer field: (Int) determines how long a timer in the level will last. Defaults to 3 seconds.
    • disallowCostume field: (String) determines which costume cannot be used in this level.
    See more

    Declaration

    Swift

    public struct LevelDataConfiguration