• 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

    Example

    const rectangle = create_rectangle(100, 100);