Changelog¶
All notable changes to the Pite game engine are documented here.
Unreleased¶
- Documentation Site Move:
- The documentation site now publishes to
https://piteengine.github.io/docsfrom the dedicatedpiteengine/docsrepository, and the old/piteURL redirects there. Documentation sources remain indocs/in this repository.
- The documentation site now publishes to
- Viewport Edit Modes (
Q/W/E/S):- Replaced the single move gizmo with a Godot-style top-left viewport mode toolbar (Select, Move, Rotate, Resize) alongside the Snap toggle.
- Select (
Q): Draws bounding boxes for spatial nodes (and 8 resize handles forControlnodes outsideContainers, keeping aspect ratio withShift), supports drag-to-move,Ctrl/Alt/Ctrl+Alttemporary Rotate/Move/Resize overrides, and anRMBcontext menu to pick among overlapping nodes. - Move (
W), Rotate (E), and Resize (S): Provide dedicated 2-axis Move/Resize gizmos and drag-anywhere transforms withShiftconstraints (single-axis lock, 15° rotation snap, and aspect-ratio lock).
- Dockable Editor Panels & Top-Bar Switcher:
- Added Godot-style dockable and floating tab containers across the editor workspace and moved the Viewport / Code mode switcher into the top bar with icons.
- Project Settings & Live Input Capture:
- Redesigned the Input Map tab in Project Settings with live key/mouse binding capture and made the Project Settings window resizable, scrollable, and responsive.
- Sprite Shader sRGB Color Fix:
- Decoded sRGB instance colors to linear in
pite-render's sprite vertex shader soButton,ColorRect, and tinted quads render with their authored sRGB colors in bothpite editandpite run.
- Decoded sRGB instance colors to linear in
- Editor UI/UX & Safety Polish:
- Replaced
Sprite2D/AnimatedSprite2Datlasrows with Create Atlas… / Edit Atlas… actions (keepingtexturefor plain sprites), unified Inspector input styling/alignment/typography, added Console panel padding, and right-aligned viewport zoom HUD and Safe Mode banner controls. - Guarded against instantiating the current scene inside itself, blocked moving special project files in the Assets panel, and ensured
ensure_python_init()runs beforePython::attachon untrusted workspaces.
- Replaced
- Dedicated Atlas Editor Panel:
- Moved the
.ptatlaseditor out of the Inspector into a dedicated Atlas Editor tab in the bottom dock, opened by double-clicking an atlas, clicking Edit Atlas…, or creating an atlas. - Redesigned it for the wide dock layout: the sheet canvas and zoom controls fill the left side, while Frames, Animations, and the Grid Slicer live in a scrollable side column. The toolbar keeps Save, TOML, and unload actions.
- Moved the
- Playtest Shortcut Scope:
F5/Ctrl+R(Play/Pause) andShift+F5(Stop) now ignore key presses while an editor text field has focus, so typing in the Inspector, Code editor, or a rename field keeps priority. They still work while the pointer is over the game viewport.
- Playtest Save Guard:
- Saving a scene during a playtest now pauses simulation and shows a warning instead of writing playtest state to disk by default. The warning defaults to Skip; Save Anyway writes the playtest state explicitly. Stop resets the scene to the saved file and re-enables saving; the redundant
stopped, scene reset.console line was removed. Held gameplay keys are released when a modal takes focus, so the player no longer keeps moving while a popup is open.
- Saving a scene during a playtest now pauses simulation and shows a warning instead of writing playtest state to disk by default. The warning defaults to Skip; Save Anyway writes the playtest state explicitly. Stop resets the scene to the saved file and re-enables saving; the redundant
- Editor Auto-Save on Run:
- Starting a fresh Play now saves the open scene and script (plus any dirty atlas) before gameplay begins. Resuming from Pause continues the same playtest session without writing playtest mutations back to disk.
- Editor Menu Shortcuts:
- Keyboard shortcuts in the top menu bar and scene-tree context menu now render as greyed, right-aligned hints instead of being appended to the item label.
- Assets Panel Create New Menu:
- Grouped the Assets panel's New File…, New Script, New Scene, New Atlas…, and New Folder… context-menu actions under a single Create New… submenu on the project root and folder rows.
- Add Node Dialog Abstract Hierarchy:
- Updated the editor's Create New Node tree to display abstract base node types (
Control,Container,CollisionObject2D,PhysicsBody2D, etc.) in their inheritance positions for clearer organization, while pruning empty abstract branches. - Kept abstract entries non-instantiable (selectable to inspect their description, with Create, double-click,
Enter, andops::add_node_with_schemasguarded against instantiation), made branches collapsible (defaulting to collapsed under level 3), and updated search so matching an abstract parent reveals its concrete descendants.
- Updated the editor's Create New Node tree to display abstract base node types (
- Audio Mixing & Buses:
- Added dynamic named audio buses (all routing through
"master") inpite-audioandpite-script:pite.play(path, volume=1.0, bus="master"),pite.set_bus_volume(bus, volume),pite.bus_volume(bus),pite.set_bus_muted(bus, muted),pite.is_bus_muted(bus), andpite.stop_bus(bus).
- Added dynamic named audio buses (all routing through
- Scene Switching API (
pite.change_scene(),pite.reload_scene()):- Added deferred end-of-frame scene transitions via
pite.change_scene(path)andpite.reload_scene()inpite-scriptandpite-runtime(validating paths immediately in Python, preserving autoload plugins across transitions, and working with both dev runs and packed exports).
- Added deferred end-of-frame scene transitions via
- Automatic GPU Texture Unload:
- Tracked per-texture
last_used_frameinSharedQueue(pite-render) and automatically evicted unused image textures after 300 idle frames (~5 seconds at 60 FPS), recycling freed GPU texture slots while keeping__white__and LRU-managed text caches intact.
- Tracked per-texture
- Custom Font Support & Project-Wide Default Font:
- Added
font(ttf/otfasset property) onControl(inherited byLabelandButton) anddefault_fontinpite.toml[project](exposed in Editor Project Settings). - Extended
TextAtlas,Renderer2D, andRenderQueueinpite-renderto load and cache custom.ttf/.otffonts viapite_core::vfswith per-glyph fallback (node.font→project.default_font→ bundled Inter). - Added
FontImporterinpite-assets,default_fontvalidation inpite check, anddefault_fontstaging inpite export.
- Added
Camera2DSmoothing & Bounds:- Added
smoothing(Bool),smoothing_speed(Num),limit_left,limit_top,limit_right, andlimit_bottom(Int, defaulting to±10_000_000) toCamera2Dinpite-core,pite-runtime, andpite-script. - Implemented frame-rate-independent exponential camera smoothing and viewport-aware world-bounds clamping in
GameSession::update_camera.
- Added
- User Save Data (
user://Persistence API):- Added per-game OS user-data directory resolution (
user_data_dir,resolve_user_path) inpite-core, mappinguser://to$XDG_DATA_HOME/pite/<game>/~/.local/share/pite/<game>on Linux,~/Library/Application Support/pite/<game>on macOS, and%APPDATA%\pite\<game>on Windows while rejecting traversal and null-byte escapes. - Exposed
pite.save(name, data)(atomic.json.tmp+ rename JSON writes),pite.load(name, default=None)(returnsdefaultwhen missing, raisesRuntimeErroron corrupt JSON), andpite.user_path(rel="")to Python scripts.
- Added per-game OS user-data directory resolution (
- Single-File Packed Exports & Lean
pite-player:- Made single-file packed executables the default for
pite export(combiningpite-stubwith an appendedzippayload andPITEPCK1footer), with--unpackedto emit the legacy directory layout. - Added
pite_core::vfsandZipVfsProviderso scenes, assets, audio, textures, and Python scripts (_PiteVfsFinder) load in-memory directly from the packed executable without writing raw game files to disk, whilepite-stubcachespite-playerand bundled CPython once on first launch. - Feature-gated
notifybehindhot-reloadinpite-runtimeand disabled it inpite-player. - Updated
pite toolchain downloadto fetch the-allplatformsplayer bundle when all platforms are missing, and updatedstatus/verifyand release CI to includepite-stub.
- Made single-file packed executables the default for
- Tweens (
pite.tween()):- Added runtime-managed property and callback tweens via
pite.tween()(PropertyTweenerwith.property(target, prop, final_val, duration),.ease(...),.trans(...),.from_(...),.delay(...),.parallel(),.callback(...),.interval(...),.loops(...),.on_finished(...),.pause(),.play(),.stop(),.kill(),.is_running()). - Supports
Num/Int,Vec2, andColorinterpolation acrosslinear,quad,cubic,sine,back,bounce, andelastictransitions (in,out,in_out,out_in), auto-cleans finished tweens, and clears active tweens on scene rebuild.
- Added runtime-managed property and callback tweens via
- Scripting & Runtime Performance:
- Reduced Python/Rust bridge overhead in the main loop via batched GIL acquisition, cached lifecycle method lookups, in-place input action evaluation, and single-lock
Vec2axis writes. - Added early-exit fast paths when scenes have no active scripts, physics bodies, or
AnimatedSprite2Dnodes.
- Reduced Python/Rust bridge overhead in the main loop via batched GIL acquisition, cached lifecycle method lookups, in-place input action evaluation, and single-lock
- Editor Viewport Pan & Zoom & Transform Gizmos:
- Added middle-mouse drag and
Space+drag panning, cursor-centered scroll/pinch zooming (0.25x–8.0x),Ctrl+0reset, and a compact zoom HUD pill in the editor viewport (disabled during Play mode so game framing stays 1:1). - Added an interactive 2D move gizmo for the selected
Node2D(free center handle + X/Y axis handles) with a top-leftSnap: 16pxgrid-snap toggle (Ctrltemporarily inverts snap while dragging) and coalesced Undo/Redo.
- Added middle-mouse drag and
- Editor Undo/Redo History:
- Added typed inverse-command undo/redo (
Ctrl+Z/Ctrl+Y/Ctrl+Shift+Zand Edit → Undo / Redo) across Scene Tree operations, Inspector property edits, TileMap2D brush/eraser strokes, and Visual Atlas (.ptatlas) edits, while preserving built-in text undo in the Code tab. - Coalesces continuous Inspector drags, TileMap strokes, and Atlas frame drags into single undo steps, and tracks the saved state across
Ctrl+S.
- Added typed inverse-command undo/redo (
- Input Action Mapping (
res://input.pite.toml):- Added
res://input.pite.toml(format_version = 1,[actions]) supporting multiple bindings per action and+-separated key/mouse chords (e.g.,"Space","Control+S","MouseLeft"). - Exposed
pite.action.held(name),pite.action.pressed(name),pite.action.released(name),pite.action.axis(neg, pos), andpite.action.vector(left, right, up, down)in Python scripts andpite-stubs. - Added the Input Map tab in Project Settings, validation in
pite check, and staging inpite export.
- Added
- UI Layout Containers & Top-Left
ControlOrigin:- Switched
Control(Label,Button, and containers) to top-left origin (position= top-left corner) and addedcustom_minimum_size,size_flags_horizontal, andsize_flags_vertical("fill","expand","expand_fill","shrink_begin","shrink_center","shrink_end"). - Added abstract
Containerand 8 concrete layout containers:HBoxContainer,VBoxContainer,CenterContainer,HFlowContainer,VFlowContainer,GridContainer,MarginContainer, andScrollContaineracrosspite-core,pite-script,pite-runtime, andpite-editor(with live editor viewport layout preview). - Added world-space scissor clipping (
push_clip_rect/pop_clip_rect→wgpu::RenderPass::set_scissor_rect) inpite-renderforScrollContainer.
- Switched
- Hardening & Reliability Fixes:
- Hardened
pite-stubto stream packed zip payloads without buffering the whole archive in memory, reject Zip Slip traversal entries, and extract runtime caches atomically (tmp+ rename). - Fixed packed-export script and plugin resolution (
pite_core::vfs::is_fileinGameSession::rebuildandsys.pathsetup inPluginHost) and ensuredpite.change_scene()/pite.reload_scene()reset script instances cleanly. - Added
pite_core::vfs::write_atomicforassets.pite.tomlsaves, skipped symlinks inscan_filesto prevent circular walks, and removed stale colliders on repeatedPhysicsWorld::attach_shapecalls.
- Hardened
v0.5.0 - 2026-11-26¶
- Plugin System (v1):
- Added project-local plugins under
res://plugins/<id>/withplugin.tomlmanifests,[plugins]configuration inpite.toml, andpite plugin new|add|enable|disable|remove|listCLI commands (supporting local paths, git URLs with--rev, and.ziparchives, added disabled by default). - Replaced static engine node tables with a dynamic
SchemaRegistryinpite-core, supporting plugin-contributed node types ([[nodes]]), typed properties ([[nodes.props]]), signals ([[nodes.signals]]), and custom project props ([props]). - Added runtime
PluginHost(pite.plugin("<id>")andpite.autoload("<Name>")),on_scene_loadedand post-node_process/_physics_processhooks, auto-bound default plugin node classes with livePluginPropDescriptors,res://plugins/onsys.path, and per-node_draw(self, canvas: pite.Canvas2D)rendering (draw_rect,draw_line,draw_text,draw_sprite). - Added workspace-trust-gated
EditorPluginHostinpite-editorwith scopedEditorUI/EditorContext, bottom panel tabs alongsideConsole, Inspector sections,Pluginsmenu actions, viewport overlay/pointer hooks, andres://plugins/in PyrightextraPaths. - Added plugin validation in
pite checkand runtime-only plugin staging (strippingeditorentrypoints and disabled plugins) inpite export.
- Added project-local plugins under
- Workspace Trust & Safe Mode:
- Opening an untrusted workspace in
pite editenters Safe Mode: the scene tree, inspector, code editor, and viewport render normally without importing or executing Python scripts or.pyhot reloads. - Added a top Safe Mode banner (
Trust Workspace) and a confirmation modal (Trust & Play/Stay in Safe Mode) gating Play (F5/Ctrl+R). - Trusted workspace paths are stored outside repositories in
<config_dir>/pite/trusted_workspaces.toml(PITE_CONFIG_DIR,$XDG_CONFIG_HOME/pite, or$HOME/.config/pite). pite newautomatically trusts newly created project directories.
- Opening an untrusted workspace in
- Visual Atlas Creator & Inspector Editor:
- Added an interactive
.ptatlaseditor inside the Inspector (viaEdit Atlas…,Create Atlas…on PNGs, or double-clicking a.ptatlasfile in Assets). - Supports interactive canvas zoom/pan, drag-to-create/move/resize frame boxes, frame filtering and renaming, and grid slicing by tile size or column/row counts with offset, spacing, and transparent-tile skipping.
- Added animation sequence management with frame-range selection, FPS and loop controls, live playback preview, and automatic viewport atlas/texture invalidation on save.
- Added an interactive
- 2D Rendering Layering, Tinting, and Batching:
- Added
z_indexdraw ordering onNode2D(inherited by 2D, UI, and physics nodes) andmodulateRGBA color tinting onSprite2DandAnimatedSprite2D. - Upgraded
Renderer2D/WgpuRendererto instanced quad rendering with persistent GPU buffers, 64-bit depth sort keys, texture slot handles, and texture-grouped sprite batching withinz_indexlayers. - Added baked 16×16 static chunks and pre-resolved atlas UV rects for
TileMap2D.
- Added
- Asset Manifest Completion (
assets.pite.toml):- Removed legacy opaque UIDs in favor of content-hashed path tracking in
assets.pite.toml(committed to version control). pite newandpite editautomatically reconcileassets.pite.toml;pite checkflags missing or stale asset manifest entries.
- Removed legacy opaque UIDs in favor of content-hashed path tracking in
- Standalone Type Stubs Package (
pite-stubs):- Added the lockstep
pite-stubsPyPI distribution generated fromNODE_SCHEMAS, enablingimport piteautocompletion and type checking in external editors.
- Added the lockstep
- Security & Path Hardening:
- Sandboxed
res://path resolution against directory traversal escapes and bounded recursive scene-cache / instance expansion.
- Sandboxed
-
Development Workflow & CI:
- Added
pre-commithooks (.pre-commit-config.yaml) forcargo fmt,markdownlint-cli2, and Conventional Commit subjects, plus workspace Clippy enforcement in CI.
- Added
-
Atlas Sidecars Switched to
.ptatlas:- Changed sprite-sheet atlas sidecar extension from
.atlas.jsonto.ptatlasacross the engine. - Switched atlas serialization to strict TOML with
format_version = 1. - Automated migration via
pite check --reimport-assetswhich converts legacy.atlas.jsonsidecars to.ptatlas, updates references in.ptscn,.ptmap, and.py, and removes legacy files. pite checkemits a diagnostic warning when legacy.atlas.jsonfiles are detected.
- Changed sprite-sheet atlas sidecar extension from
-
CLI Output Design Pass:
- Human messages are built from typed styled spans (bold paths, cyan identifiers, dim secondary text) instead of markup embedded in strings; JSON receives the plain concatenation.
- Diagnostic cards use
Error:/Warning:,Why:, andFix:only — theHint:field and its duplicated guidance were folded intoFix:. - Commands with a verdict or stats end in a full-width summary bar: solid green/yellow/red with bold black text, or dim when neutral. Bars follow terminal width (40–200 columns, 80 when piped) and grow instead of truncating.
pite checkgained cyanReimporting assets:andChecking scene caches:blocks, rewritten-reference counts on renames, anUpdate:label for changed assets, andNothing to change.when a reimport has no work. The scene-cache, reimport, and check bars print as one contiguous group at the bottom.pite checkprints a cyanHint: Run pite check --reimport-assets to fix <n> issues.line after reference-rewrite cards, with a blank line above and below. The reimport command is cyan inFix:text too.- The verbose scene cache lists each scene file once, even when it is also reached through an
[[instance]]entry. pite vendorindentsPinned to <hash>under the package row instead of aligning it with the row's cells.pite export,pite vendor, andpite toolchainnow share the same cards/bars/tables vocabulary, includingVerified/Mismatch/Missing/Cacheddisplay statuses andWindows/Linux/macOSplatform names.pite exportgroups progress intoBinary,Python, andFilessections, listsCopied <path>lines underCopying N project fileswith-v, and renders output paths with the target platform's separator.- Long-running export steps rewrite their line in place on a terminal (
Downloading …becomes a greenDownloaded …) and print both lines when stderr is piped; section content is indented two spaces. pite toolchain statusgroups rows under onePythonand onePlayerlabel;pite toolchain cleannow requires--python,--player, or--alland lists what it removed.pite vendorlabels downloaded artifactsWheel <file>, printsPinned to <hash>, and reportsMatches the pinned hash/Got unexpected <hash>in verification details.-vonly adds command detail (cache lines, copied files, pinned hashes); it no longer raises the log level to debug.- Progress lines capitalize the verb in cyan and bold parenthesized file names;
pite run -vandpite edit -vannounce the target before launching.
- Unified CLI Output Layer:
- Every
pitecommand now shares one output context: diagnostics, success lines, progress, cards, and tables render consistently. - Global flags accepted before or after any subcommand:
--color <auto|always|never>,--json,-v, --verbose, and-q, --quiet(previouslypite check-only). - Human output (progress, confirmations, cards, tables) moved to stderr; stdout carries only JSON payloads and requested data, so
pite export … > build.logand pipelines stay clean. pite new,pite export,pite vendor, andpite toolchainconfirmations are now structured lines and tables instead of ad-hocprintln!text.pite vendor listandpite toolchain statusrender aligned, auto-width tables with an uppercase header and no truncation.- Severity labels are words (
Error:,Warning:,Success:) rather than✖/▲/✔glyphs, improving screen-reader output.
- Every
- Structured JSON for Every Command:
- All commands honor
--jsonand emit one envelope:{ schema_version, command, ok, data?, error? }. checkkeeps its full payload;new,export,toolchain, andvendorgained typed payloads;runandeditreport on exit only.- Envelope and per-command payload
schema_versionare independent and both start at1(previously the check report wasschema_version: 3). - A failed check or failed verification reports
ok: falsewith full data and exits1; usage errors emit an error envelope and exit2. --jsonalways disables ANSI; color precedence is--json>--color>NO_COLOR> TTY detection.
- All commands honor
pite checkRefactor:- Findings are built as typed
Findingvalues at detection time (severity, kind, location, message, why, fix) instead of parsed from rendered strings; the old string parsing remains only as a boundary adapter for lower-crate messages. - JSON paths are project-relative with
/separators, including scene-cache entries. - The check implementation is split into orchestration, scene walk, payload types/rendering, and behavior tests.
- Findings are built as typed
pite-exportProgress Sink (Breaking for library callers):- Added
pite_export::Progresswithsection/info/step/success/warn/pending/complete/detail; the CLI implements it with its own output layer. - I/O-facing functions (
export_project,ensure_archive,verify,stage,download_and_extract_player,ensure_player_binary) now take&mut dyn Progress; pass&mut ()for silence. - Removed duplicated raw
eprintln!progress lines in favor of the sink, soRUST_LOG=infono longer prints each event twice. - This is a breaking API change for the published crate and will be reflected in the next release version.
- Added
v0.4.0 - 2026-11-13¶
-
Enhanced
pite checkCLI Diagnostics:- Redesigned terminal report with structured What / Why / Fix diagnostic cards for all errors and warnings.
- Standard 16-color ANSI output with bold red (
✖ ERROR), bold yellow (▲ WARN), bold green (✔ Checked), and bold cyan locations. - Clean single-line quiet success banner displaying checked project name, scene count, asset count, and elapsed time.
- Added
--color <auto|always|never>option with automatic terminal andNO_COLORdetection. - Added
-v, --verboseflag to view scene cache details on demand, suppressing them by default in clean output. - Upgraded machine-readable
--jsonreport toschema_version: 3with structuredsummaryanddiagnosticsobjects.
-
2D Flipbook Animations (
AnimatedSprite2D):- Added
AnimatedSprite2Dnode inheriting fromNode2Dfor frame-by-frame 2D animations using sprite sheets. - Extended
.atlas.jsonschema with"animations"defining named sequences of frames, frames-per-second (fps), andloopsetting. - Scripting API:
pite.AnimatedSprite2Dexposesplay(anim, loop),pause(),stop(), andis_playing(), along with propertiesatlas,animation,frame,speed_scale,playing, andautoplay. - Signals: Engine-managed
animation_finished(anim_name)on completion of non-looping animations andanimation_looped(anim_name)on each cycle of looping animations. - Runtime: Frame timing accumulation with remainder carry-over in
_process, support for negativespeed_scale(reverse playback), and scene-ready autoplay initialization. - Static verification:
pite checkverifies.atlas.jsonanimation definitions, ensures node animation names exist in referenced atlases, and flags unreferenced animations. - Editor integration: Phosphor icon, atlas drag-and-drop support, inspector editing, and static viewport frame rendering.
- Added
-
2D Tilemaps (
TileMap2D):- Added multi-layer grid tilemaps via
.ptmapTOML sidecars referencing atlas frames. - Greedy collider merging: adjacent solid tiles coalesce into maximal static box colliders in Rapier2D, preventing internal edge snagging.
- Frustum-culled batch rendering: offscreen tiles are culled, batching visible tiles into GPU draw calls.
- Scripting API:
pite.TileMap2Dexposesget_cell,set_cell,erase_cell,clear, coordinate helpersworld_to_map/map_to_world, layer introspection, andtile_size. - Editor tools: inspector tile palette with layer switcher and brush/eraser toggles; viewport interactive painting with grid snapping.
- Project verification:
pite checkvalidates.ptmapfiles, atlas references, and frame usage.
- Added multi-layer grid tilemaps via
- Simultaneous Scene & Code Save:
Ctrl+S/Cmd+Ssaves both the active.ptscnscene and open Python script simultaneously, triggering an immediate hot reload. - Assets Panel File Management:
- Folder-first sorting, empty folder preservation, and double-click file opening.
- Creation dialogs for scripts, scenes, and folders via
+ Fileand+ Folder. - Context menu and keyboard shortcuts: Cut, Copy, Paste, Duplicate, Delete, and Rename (
F2) with automatic reference rewriting across scenes and scripts. - Drag-and-drop support: import files from the OS, move items between directories, drop scripts onto Scene Tree nodes, and drag textures into Inspector fields.
- UI Hierarchy Refactoring:
Controlnow inherits fromNode2D(Node → Node2D → Control → Label & Button).LabelandButtoninheritpositionandrotationtransforms directly fromNode2Dalongside UI styling (color,font_size).
- Custom Project Properties (
[props]):- Declared under
[props]inpite.toml(string,int,number,bool,vec2,color). - Accessible in scripts via
get_custom_property,set_custom_property, andremove_custom_property.
- Declared under
- Schema-Driven Documentation and Stubs:
NodeTypeSchemaandPropSchemadrive editor tree descriptions, inspector hover tooltips, and node reference docs.pite.pyiandpite.pytype stubs are generated at build time directly fromNODE_SCHEMAS, guaranteeing synchronization with the engine.
- Python Accessor Updates:
CharacterBody2D.is_on_floor,is_on_wall, andis_on_ceilingare now attribute accessors (e.g.self.is_on_floor), not methods.Node2D.rotationis exposed to Python and reflected by the renderer.- Direct tree-backed prop accessors ensure property modifications (
position,velocity,color, etc.) persist cleanly across hot reloads.
- Scene Tree Panel Overhaul:
- Modal node creation dialog (
Ctrl+A/+ Node) with search filtering, category descriptions, and inheritance hierarchy. - Sibling and child drag-and-drop reordering with 3-2 drop zones (child vs before/after sibling), horizontal insertion lines, and floating drag preview cards.
- Subtree duplication (
Ctrl+D), inline renaming (F2), and child scene instantiation (Ctrl+Shift+A). - Phosphor icons and color-coded node categories (2D, physics, UI, timer).
- Modal node creation dialog (
- Inspector Panel Overhaul:
- Properties organized into collapsible inheritance-grouped sections (
Node→Node2D→ derived class). - Revert-to-default buttons for properties deviating from schema defaults.
- Interactive Color editor with hex inputs and live preview swatches.
- Properties organized into collapsible inheritance-grouped sections (
- Crates.io &
cargo install pitePackaging:- Configured all 13 workspace crates for crates.io publication; engine CLI and editor installable via
cargo install pite.
- Configured all 13 workspace crates for crates.io publication; engine CLI and editor installable via
- Scripting & Physics Synchronization:
- Pre-step synchronization of node tree positions into Rapier2D for kinematic and static bodies and areas manipulated in Python.
- Signal error reporting prints full Python tracebacks to stderr and logs when handlers raise exceptions.
- Color property setters accept hex color strings (e.g.
"#38bdf8") in addition to numeric tuples. Sprite2Dtreats emptyatlasandframestrings as unset rather than throwing invalid reference errors.
- Dependencies & MSRV:
- Upgraded Rapier2D to 0.36.1 and Zip archive handling to 9.4.1.
- Bumped workspace MSRV to Rust 1.95.
- Color Property Type: Added native
Colorproperty variant with#rgb,#rrggbb, and#rrggbbaahex parsing and alpha support in the editor.
v0.3.0¶
- 2D Physics Subsystem (Rapier2D):
- Integrated 2D physics simulation running on a fixed 60 Hz tick (
_physics_process(delta)). - Node types:
StaticBody2D(static geometry),CharacterBody2D(kinematic controller withmove_and_slide()),RigidBody2D(forces and impulses),Area2D(trigger zones), andCollisionShape2D(box,circle,capsule). - Kinematic character controller:
move_and_slide()resolves sliding collisions against solid geometry while ignoring sensors, updatingvelocityand contact flags (is_on_floor,is_on_wall,is_on_ceiling). - Spatial queries:
pite.raycast(from, to, mask)queries solid obstacles and returns intersection points, normals, distances, and hit bodies. - Editor visualization: viewport wireframe overlays for collision shapes with Inspector configuration controls.
- Integrated 2D physics simulation running on a fixed 60 Hz tick (
- Editor Menu Bar & Recent Projects:
- Native menu bar (
Scene,Project,Help) with file dialogs, project settings, documentation links, and recent project history. - Open and edit text configuration files (
pite.toml,.gitignore) directly in the embedded code editor.
- Native menu bar (
- CLI Toolchain Management:
- Added toolchain manager (
pite toolchain) and streamlined cross-platform installer scripts (install.sh,install.ps1).
- Added toolchain manager (
- Python API Redesign:
- Native
Vec2math class with arithmetic operator overloading, in-place mutation, and tuple sequence unpacking. - Direct engine transform mutations without end-of-frame reflection overhead.
- Attribute-based input API:
pite.held.<key>,pite.pressed.<key>, andpite.released.<key>. - Declarative node descriptors:
pite.child("Name")andpite.node("../Path")with first-access caching. - Flexible signal callbacks:
signal.connect()accepts arbitrary Python callables (methods, lambdas, free functions).
- Native
- Hot Reload Reliability:
- Continuous editor idle watching reloads external script and scene edits without starting gameplay.
- Hot reload selectively updates scenes matching the active hierarchy, preserving Python instance state and physics velocities.
- Texture and atlas modifications automatically invalidate cached renderer textures.
- Expanded Audio Support: Added pure-Rust decoding via Symphonia for Ogg Vorbis (
.ogg), MP3 (.mp3), FLAC (.flac), and extended WAV formats. - Scene File Extension Standardized to
.ptscn: Migrated scene file naming to.ptscnacross editor, tooling, templates, and documentation. - Standalone Player Releases & Cross-Platform Export:
pite exportautomatically downloads platform-specificpite-playerrelease archives when missing locally.- Release pipeline publishes standalone and multi-platform player archives.
- Added macOS export and cross-compilation support.
v0.2.0¶
- Python Dependency Vendoring (
pite vendor):- Added
pite vendor add/remove/list/verifyto vendor third-party wheels intovendor/with cryptographic SHA-256 locking in[vendor]. - The runtime configures
vendor/onsys.pathacross development and exported builds. pite checkaudits game scripts and warns on non-vendored third-party imports.
- Added
- Integrated Code Completion:
- Embedded Pyright language server provides autocomplete popups, hover information, and diagnostics directly in the code editor.
- Baked-in
pite.pyistubs ensure full engine API autocompletion out of the box.
- Design Resolution & Window Scaling:
- Default project resolution updated to 1280×720 with uniform aspect-ratio scaling, letterboxing, and mouse coordinate mapping.
- Project Settings Window:
- Added interactive settings dialog (
Project > Project Settings…) for editing manifest fields with validation and byte-stable saving.
- Added interactive settings dialog (
- Code Editor Enhancements:
- Added line-number gutter with error row indicators and click-to-jump error navigation.
- Syntax highlighting for Python and configuration file formats (
toml,json,yaml,ini).
v0.1.1¶
- Timer Subsystem (
Timer.timeout): Engine-ownedtimeoutsignal automatically fires everywait_timeseconds and loops, with bidirectional property synchronization between Rust and Python. - Button Sizing:
Button.sizeproperty exposed as a script-accessible, type-hintedVec2property for hit-testing and rendering. - Manifest Cleanup: Deprecated unused
export.platformsmanifest key;pite exportvalidates execution from within a project root. - Signal Type Safety: Enhanced signal emission validation via Pyright type stubs in
pite.pyi.
v0.1.0¶
Initial public release series establishing Pite's foundational architecture:
- Scene Tree Architecture:
- Hierarchical node tree (
Node,Node2D,Sprite2D,Camera2D,Timer,Label,Button) with parent-child coordinate inheritance and lifecycle dispatch (_ready,_process). - Modular scene instantiation: nest sub-scenes within scenes with namespaced IDs and property overrides.
- Hierarchical node tree (
- Embedded Python Scripting:
- High-performance embedded CPython 3.12 runtime powered by PyO3.
- Public
pitemodule with transform bindings, vector math, input polling, typed signals (pite.signal), andpite.pyitype stubs. - Live script hot reload on save without restarting the engine.
- Visual Desktop Editor:
- Desktop editor built with
egui/eframe: real-time 2D viewport, visual scene tree, property inspector, asset file tree, and code editor. - Design system with canonical Pite Teal palette, dark UI theming, and embedded typography.
- Desktop editor built with
- TOML Scene Format & Binary Caching:
- Human-readable TOML scenes (
.ptscn) as the canonical source of truth for version control. - Automatic content-hashed binary scene caches (
_cache/*.bin) for fast loading with transparent fallback.
- Human-readable TOML scenes (
- Asset Pipeline & Verification Tooling:
- Project-relative resource paths (
res://…) and content-addressed UID manifest (assets.pite.toml). pite checkCLI tool for validating asset references, script imports, and scene schemas, with automatic path rewriting on asset moves (--reimport-assets).- Texture atlas batching (
.atlas.json) for efficient sprite sheet rendering.
- Project-relative resource paths (
- Audio Output:
- Multi-voice audio playback via CPAL with graceful silent simulation when no hardware output device is detected.
- Standalone Desktop Export:
- Self-contained export pipeline producing lean, runnable bundles for Linux and Windows with bundled CPython and minimal
pite-playerrunner.
- Self-contained export pipeline producing lean, runnable bundles for Linux and Windows with bundled CPython and minimal
- Crates.io Release:
- Modular workspace crates (
pite-core,pite-scene,pite-project,pite-runtime,pite-render,pite-script,pite-audio,pite-assets,pite-export,pite-player,pite-editor,pite-cli) published to crates.io.
- Modular workspace crates (