Castle Game Engine Object Pascal 2D/3D game engine with a visual editor, reusable components and cross-platform build tools.
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.[1] [5] [6]
Contents Visual design and code 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.[1]
Behavior and object ownership 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.[2]
Model interchange 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.[3]
Building and packaging 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.[4]
Web-target limits 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.[5]
Licensing boundaries 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.[6]
Substitution considerations Castle Game Engine is a candidate alternative to Unity 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.[1] [2] [3] [5] [7]
References Castle Game Engine features Visual designs, Pascal code, platforms and reusable components
vendor · retrieved 2026-10-07 Castle overview for Unity developers Transforms, behaviors, viewports and owner versus parent
vendor · retrieved 2026-10-07 Castle glTF support Formats, extension coverage, morph-target gap and animated collision
vendor · retrieved 2026-10-07 Castle build tool Manifest, compile/package and compiler selection
vendor · retrieved 2026-10-07 Castle web target Intensive development, single canvas, persistence TODOs and browser event-loop limits
vendor · retrieved 2026-10-07 Castle licensing LGPL core with linking exception; GPL editor; BSD examples and marked data exceptions
vendor · retrieved 2026-10-07 Unity GameObjects manual GameObject/component authoring model
vendor · retrieved 2026-10-07 Also included: 4 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.