jetlag2d
    Preparing search index...

    Class GridSystem

    GridSystem is a lightweight system for drawing grids on the screen. Grids can be helpful during the initial steps of developing a game.

    In reality, this isn't useful enough to be an official part of JetLag, but it is convenient for the tutorials, so we're keeping it.

    Index
    • Draw a grid with meter and (optionally) half-meter lines

      Parameters

      • scene: Scene

        The scene where the grid should be drawn

      • top_left: { x: number; y: number }

        The x/y coordinates of the top-left corner

      • bottom_right: { x: number; y: number }

        The x/y coordinates of the bottom-right corner

      • Optionalz: 0 | 1 | 2 | 4 | -4 | 3 | -3 | -2 | -1

        The Z index of the grid

      Returns void