Skip to main content

Built-in modules

The runtime currently registers these modules:

  • oxid/core
  • oxid/math
  • oxid/color
  • oxid/shapes
  • oxid/input
  • oxid/text
  • oxid/texture

What each module is for

oxid/core

Base GameObject class used by the default scripting pattern.

oxid/math

2D utility types such as Transform2D.

oxid/color

Color values used by the drawing APIs.

oxid/shapes

Immediate drawing helpers for arcs, circles and rectangles.

oxid/input

Keyboard and mouse queries backed by the native runtime.

oxid/text

2D text rendering and text measurement.

oxid/texture

Texture loading and textured drawing helpers.