{"schemaVersion":"1.0","record":{"label":"Castle Game Engine","description":"Object Pascal 2D/3D game engine with a visual editor, reusable components and cross-platform build tools.","aliases":["CGE"],"kind":"software","website":"https://castle-engine.io/","overview":"Castle Game Engine combines a visual editor with Object Pascal APIs for 2D and 3D games and applications. It supports reusable scene and interface designs, external model formats and platform-oriented build tooling. Its engine core, editor and example content have different licenses, and its web target has additional development and browser constraints.","license":"Core: LGPL-2.0-or-later with static-linking exception; editor: GPL-2.0-or-later; examples generally BSD-3-Clause.","lifecycle":"active","example":false,"features":[{"name":"Visual scene and interface design","status":"supported","detail":"The editor creates 2D/3D and UI designs, serializes them and supports reusable designs and custom components.","useCase":"Building 2D/3D games with visual design and Object Pascal code","platforms":["Windows","macOS","Linux","FreeBSD","Android","iOS","Web"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://castle-engine.io/features","locator":"Visual designs, Pascal code, platforms and reusable components","retrievedAt":"2026-10-07T20:08:51Z","kind":"vendor"}]},{"name":"Object Pascal application code","status":"supported","detail":"Application behavior uses Pascal classes and APIs, including transform behaviors and views.","useCase":"Building 2D/3D games with visual design and Object Pascal code","platforms":["Windows","macOS","Linux","FreeBSD","Android","iOS","Web"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://castle-engine.io/castle_game_engine_for_unity_developers","locator":"Transforms, behaviors, viewports and owner versus parent","retrievedAt":"2026-10-07T20:08:51Z","kind":"vendor"}]},{"name":"glTF asset import","status":"limited","detail":"GLB/glTF and several extensions are supported, but the current guide lists morph targets as missing and describes specific animated-collision behavior.","useCase":"Building 2D/3D games with visual design and Object Pascal code","platforms":["Windows","macOS","Linux","FreeBSD","Android","iOS","Web"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://castle-engine.io/gltf","locator":"Formats, extension coverage, morph-target gap and animated collision","retrievedAt":"2026-10-07T20:11:31Z","kind":"vendor"}]},{"name":"Web deployment","status":"limited","detail":"The WebAssembly/WebGL route is in intensive development; browser loop, storage and window limitations require project-specific review.","useCase":"Building 2D/3D games with visual design and Object Pascal code","platforms":["Windows","macOS","Linux","FreeBSD","Android","iOS","Web"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://castle-engine.io/web","locator":"Intensive development, single canvas, persistence TODOs and browser event-loop limits","retrievedAt":"2026-10-07T20:13:04Z","kind":"vendor"}]}],"alternatives":[],"slug":"castle-game-engine","draftAlternatives":[{"targetSlug":"unity","status":"limited","detail":"Assessment: an alternative for 2D/3D games when a team accepts Object Pascal, Castle's component model and its supported deployment paths. A vendor guide maps concepts but does not establish automatic Unity project/C# conversion; shader, asset and service requirements need separate review.","useCase":"Building 2D/3D games with visual design and Object Pascal code","platforms":["Windows","macOS","Linux","FreeBSD","Android","iOS","Web"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://castle-engine.io/features","locator":"Visual designs, Pascal code, platforms and reusable components","retrievedAt":"2026-10-07T20:08:51Z","kind":"vendor"},{"url":"https://castle-engine.io/castle_game_engine_for_unity_developers","locator":"Transforms, behaviors, viewports and owner versus parent","retrievedAt":"2026-10-07T20:08:51Z","kind":"vendor"},{"url":"https://docs.unity3d.com/Manual/GameObjects.html","locator":"GameObject/component authoring model","retrievedAt":"2026-10-07T20:13:04Z","kind":"vendor"},{"url":"https://castle-engine.io/gltf","locator":"Formats, extension coverage, morph-target gap and animated collision","retrievedAt":"2026-10-07T20:11:31Z","kind":"vendor"},{"url":"https://castle-engine.io/web","locator":"Intensive development, single canvas, persistence TODOs and browser event-loop limits","retrievedAt":"2026-10-07T20:13:04Z","kind":"vendor"}]}],"evidence":[{"url":"https://castle-engine.io/features","locator":"Visual designs, Pascal code, platforms and reusable components","retrievedAt":"2026-10-07T20:08:51Z","kind":"vendor"},{"url":"https://castle-engine.io/castle_game_engine_for_unity_developers","locator":"Transforms, behaviors, viewports and owner versus parent","retrievedAt":"2026-10-07T20:08:51Z","kind":"vendor"},{"url":"https://castle-engine.io/gltf","locator":"Formats, extension coverage, morph-target gap and animated collision","retrievedAt":"2026-10-07T20:11:31Z","kind":"vendor"},{"url":"https://castle-engine.io/build_tool","locator":"Manifest, compile/package and compiler selection","retrievedAt":"2026-10-07T20:11:31Z","kind":"vendor"},{"url":"https://castle-engine.io/web","locator":"Intensive development, single canvas, persistence TODOs and browser event-loop limits","retrievedAt":"2026-10-07T20:13:04Z","kind":"vendor"},{"url":"https://castle-engine.io/license","locator":"LGPL core with linking exception; GPL editor; BSD examples and marked data exceptions","retrievedAt":"2026-10-07T20:08:22Z","kind":"vendor"},{"url":"https://docs.unity3d.com/Manual/GameObjects.html","locator":"GameObject/component authoring model","retrievedAt":"2026-10-07T20:13:04Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://castle-engine.io/features","locator":"Visual designs, Pascal code, platforms and reusable components","retrievedAt":"2026-10-07T20:08:51Z","id":"features","title":"Castle Game Engine features","kind":"vendor"},{"url":"https://castle-engine.io/castle_game_engine_for_unity_developers","locator":"Transforms, behaviors, viewports and owner versus parent","retrievedAt":"2026-10-07T20:08:51Z","id":"unity-guide","title":"Castle overview for Unity developers","kind":"vendor"},{"url":"https://castle-engine.io/gltf","locator":"Formats, extension coverage, morph-target gap and animated collision","retrievedAt":"2026-10-07T20:11:31Z","id":"gltf","title":"Castle glTF support","kind":"vendor"},{"url":"https://castle-engine.io/build_tool","locator":"Manifest, compile/package and compiler selection","retrievedAt":"2026-10-07T20:11:31Z","id":"build","title":"Castle build tool","kind":"vendor"},{"url":"https://castle-engine.io/web","locator":"Intensive development, single canvas, persistence TODOs and browser event-loop limits","retrievedAt":"2026-10-07T20:13:04Z","id":"web","title":"Castle web target","kind":"vendor"},{"url":"https://castle-engine.io/license","locator":"LGPL core with linking exception; GPL editor; BSD examples and marked data exceptions","retrievedAt":"2026-10-07T20:08:22Z","id":"license","title":"Castle licensing","kind":"vendor"},{"url":"https://docs.unity3d.com/Manual/GameObjects.html","locator":"GameObject/component authoring model","retrievedAt":"2026-10-07T20:13:04Z","id":"unity","title":"Unity GameObjects manual","kind":"vendor"}],"overviewCitations":["features","license","web"],"licenseCitations":["license"],"sections":[{"id":"design","heading":"Visual design and code","paragraphs":[{"id":"design-detail","content":[{"text":"The editor assembles worlds and interfaces using components and stores designs in a JSON-based representation. Designs can reference other designs, supporting reusable content comparable in purpose to prefabs. Developers can add project-specific components and use an external Pascal IDE for application code. This combines visual authoring and programming without making the saved design interchangeable with another engine's project format."}],"citations":["features"]}]},{"id":"behavior","heading":"Behavior and object ownership","paragraphs":[{"id":"behavior-detail","content":[{"text":"Castle's guide for Unity developers maps some GameObject roles to TCastleTransform and describes behavior classes for attaching logic. It also distinguishes visual parenting from ownership: the parent controls hierarchy, while the owner participates in freeing component instances. A viewport is itself a UI component containing a view of the world. These differences matter when porting object lifetime, interface structure and camera behavior."}],"citations":["unity-guide"]}]},{"id":"assets","heading":"Model interchange","paragraphs":[{"id":"assets-detail","content":[{"text":"The glTF guide supports GLB and glTF files, embedded or external textures, skinned animation and selected extensions. It explicitly lists morph targets as an outstanding feature. For skinned animated meshes, it describes bounding-box collision and suggests attaching more precise physical colliders to exposed joint transforms where needed. Thus, accepting a model format is not a promise of identical animation, material and collision behavior."}],"citations":["gltf"]}]},{"id":"builds","heading":"Building and packaging","paragraphs":[{"id":"builds-detail","content":[{"text":"CastleEngineManifest.xml describes a project's source, identity and packaged files. The build tool distinguishes compiling from packaging and can select Free Pascal or Delphi where appropriate. It also integrates platform-specific dependencies and project conventions. This helps automate delivery, but a selected target still depends on a suitable compiler and its native toolchain rather than only on the visual design."}],"citations":["build"]}]},{"id":"web","heading":"Web-target limits","paragraphs":[{"id":"web-detail","content":[{"text":"The web documentation labels the feature as undergoing intensive development. It describes a single-canvas application model and warns that the browser must own the main loop, making certain blocking message loops unsuitable. Persistent save data and file dialogs remain listed as TODOs. Consequently, desktop behavior should not be assumed to carry over unchanged, especially for games that depend on persistence, multiple windows or synchronous dialogs."}],"citations":["web"]}]},{"id":"licensing","heading":"Licensing boundaries","paragraphs":[{"id":"licensing-detail","content":[{"text":"The core uses LGPL version 2 or later with a static-linking exception that allows independent application modules to keep their chosen license. The visual editor is separately GPL version 2 or later. Example code and most example data use BSD three-clause terms, with marked data exceptions. These distinctions concern different parts of the distribution: using the editor to author a game is not the same as distributing a modified editor or incorporating specially licensed example data."}],"citations":["license"]}]},{"id":"comparison","heading":"Substitution considerations","paragraphs":[{"id":"comparison-detail","content":[{"text":"Castle Game Engine is a candidate alternative to "},{"text":"Unity","targetSlug":"unity"},{"text":" for teams seeking visual 2D/3D authoring combined with a Pascal codebase. Its Unity-oriented guide provides conceptual mappings, not a project converter. Game behavior, reusable designs, shaders, assets and service integrations need individual migration work. The engine's documented glTF and web limitations are especially relevant where the existing game relies on those capabilities."}],"citations":["unity-guide","unity","features","gltf","web"]}]}]},"id":"Q1270","revision":1318,"updatedAt":"2026-10-14T01:51:01Z","sourceUrl":"https://substitutefor.net/entities/Q1270?revision=1318"}}