Source Academy Modules
    Preparing search index...

    Function create_rectangle

    • Creates a RectangleGameObject that takes in rectangle shape properties.

      Parameters

      • width: number

        The width of the rectangle

      • height: number

        The height of the rectangle

      Returns ShapeGameObject

      const rectangle = create_rectangle(100, 100);