Expand description
One file per node type. Each module owns its SCHEMA and PROPS.
Abstract classes (Control, CollisionObject2D, PhysicsBody2D) exist
so subclasses inherit shared props without redeclaring them; the engine
still registers them (for compatibility with existing scenes), but the
editor’s add-node menu filters them out.
Modules§
- animated_
sprite2d - AnimatedSprite2D: plays 2D flipbook animations from a spritesheet atlas.
- area2d
- Area2D: trigger zones for overlap detection. Inherits collision_layer/collision_mask from CollisionObject2D.
- button
- Button: clickable UI element. Overrides
Control’scolor(slate background instead of white) andsize(120×40 instead of 100×40); addstextanddisabled. - camera2d
- Camera2D: frames the view on its global position.
- character_
body2d - CharacterBody2D: kinematic physics body driven by
move_and_slide().collision_layer/collision_maskandfriction/restitutionare inherited fromPhysicsBody2D. - collision_
object2d - Abstract base for collision participants: collision_layer, collision_mask.
- collision_
shape2d - CollisionShape2D: geometric collider attached to a physics body or area.
- control
- Abstract base for UI elements: size, color, font size.
- label
- Label: draws text at its global position.
font_sizeandcolorare inherited fromControl. - node
- Node: base class for every scene object. No transform, no props.
- node2d
- Node2D: 2D transform (position, rotation).
- physics_
body2d - Abstract base for solid bodies: friction, restitution.
Area2DinheritsCollisionObject2Ddirectly (sensors have no friction). - rigid_
body2d - RigidBody2D: dynamic physics body.
- sprite2d
- Sprite2D: draws a texture or one atlas frame at its global position.
- static_
body2d - StaticBody2D: immobile physics body.
collision_layer/collision_maskcome fromCollisionObject2D,friction/restitutionfromPhysicsBody2D. - tilemap
- TileMap2D: renders 2D tilemaps defined in an external .ptmap TOML sidecar.
- timer
- Timer: fires its engine-owned
timeoutsignal everywait_timeseconds (looping; non-positive never fires).current_elapsedis the rolling clock advanced byPyTimer::_process; exposed as a normal prop so scripts can inspect or reset it.
Statics§
- ALL_
NODES - Every node schema, concrete and abstract, in a stable order.
pite-core::schema::NODE_SCHEMASre-exports this.