Balaur has no node classes and no inheritance tree: every node is the
same entity, and capability comes from the components on it. What a
Node2D, RigidBody or Label is elsewhere is here a plain node
plus shape2d, body or widget — freely combined.
Each component is registered by a plugin with the schema below; one
registration provides the scene-file key, the runtime
node:set_component family, and the editor's inspector rows.
animation · 4 properties
| property | type | default | notes |
|---|
autoplay | string |
| |
library | asset |
| |
root | string |
| |
speed | float | 1.0 | |
body · 1 property
| property | type | default | notes |
|---|
kind | enum | dynamic | one of dynamic, static, kinematic; scene shorthand: the key takes this value directly |
body2d · 1 property
| property | type | default | notes |
|---|
kind | enum | dynamic | one of dynamic, static, kinematic; scene shorthand: the key takes this value directly |
collider · 3 properties
| property | type | default | notes |
|---|
half_extents | vec3 | [0.5, 0.5, 0.5] | |
kind | enum | cuboid | one of ball, cuboid |
radius | float | 0.5 | |
collider2d · 6 properties
| property | type | default | notes |
|---|
density | float | 1.0 | |
friction | float | 0.5 | |
half_extents | vec2 | [0.5, 0.5] | |
kind | enum | rect | one of circle, rect |
radius | float | 0.5 | |
restitution | float | 0.0 | |
color · 1 property
| property | type | default | notes |
|---|
rgba | color | [0.8, 0.8, 0.8, 1.0] | scene shorthand: the key takes this value directly |
shape · 3 properties
| property | type | default | notes |
|---|
half_extents | vec3 | [0.5, 0.5, 0.5] | |
kind | enum | cuboid | one of ball, cuboid |
radius | float | 0.5 | |
shape2d · 3 properties
| property | type | default | notes |
|---|
half_extents | vec2 | [0.5, 0.5] | |
kind | enum | rect | one of circle, rect |
radius | float | 0.5 | |
sprite · 6 properties
| property | type | default | notes |
|---|
columns | float | 0.0 | |
frame | float | 0.0 | |
half_extents | vec2 | [0.0, 0.0] | |
pixels_per_unit | float | 100.0 | |
rows | float | 0.0 | |
texture | string |
| |
widget · 9 properties
| property | type | default | notes |
|---|
anchor | enum | top_left | one of top_left, top_right, bottom_left, bottom_right, center |
clicked | bool | false | read-only: engine output the inspector shows but never writes |
font_size | float | 16.0 | |
kind | enum | label | one of label, button, panel |
on_click | string |
| |
text | string | label | |
text_color | color | [0.933, 0.945, 0.957, 1.0] | |
x | float | 16.0 | |
y | float | 16.0 | |