Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
Edit this page

Node Reference

Every node type in the engine, derived from pite_core::NODE_SCHEMAS at build time. Do not edit these files by hand — crates/pite-editor/build.rs rewrites them whenever the schema changes.

  • Node — Base class for all scene objects. Does not have a 2D transform.
    • Node2D — 2D game object with position and rotation.
      • AnimatedSprite2D — Plays 2D flipbook animations from a spritesheet atlas.
      • Camera2D — Frames the view: the screen centers on this node's global position.
      • CollisionObject2D (abstract) — Abstract base for collision participants: collision_layer and collision_mask.
        • Area2D — Trigger zone for overlap detection. Emits body_entered/body_exited and area_* signals.
        • PhysicsBody2D (abstract) — Abstract base for solid bodies: friction and restitution. Sensors (Area2D) skip it.
          • CharacterBody2D — Kinematic body driven by script via move_and_slide(). Slides along obstacles, ignores sensors.
          • RigidBody2D — Dynamic physics body simulated by gravity, impulses, and forces.
          • StaticBody2D — Immovable physics body: floors, walls, platforms. Never responds to impulses.
      • CollisionShape2D — Geometric collider attached to a parent physics body or Area2D.
      • Control (abstract) — Abstract base for UI elements: size, color, and font size.
        • Button — Clickable rectangle with a caption. Fires the engine-owned pressed signal.
        • Container (abstract) — Abstract base for UI layout containers that arrange Control children.
          • CenterContainer — Centers Control children within its bounding rectangle.
          • GridContainer — Arranges Control children into a grid with a configured column count.
          • HBoxContainer — Arranges Control children horizontally from left to right.
          • HFlowContainer — Arranges Control children horizontally and wraps onto new rows.
          • MarginContainer — Applies outer margins around Control children.
          • ScrollContainer — Clips and scrolls Control children within its bounding rectangle.
          • VBoxContainer — Arranges Control children vertically from top to bottom.
          • VFlowContainer — Arranges Control children vertically and wraps onto new columns.
        • Label — Draws text centered on its global position.
      • Sprite2D — Displays a 2D texture or one frame from a spritesheet atlas.
      • TileMap2D — Renders 2D multi-layer grid tilemaps with automatic physics colliders.
    • Timer — Fires the engine-owned timeout signal every wait_time seconds.