software · Q1270
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]
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]
Capabilities & limitations
Visual scene and interface design
supportedThe editor creates 2D/3D and UI designs, serializes them and supports reusable designs and custom components.[1]
Building 2D/3D games with visual design and Object Pascal code · Windows, macOS, Linux, FreeBSD, Android, iOS, Web · Version, build and integration requirements apply
1 source · check evidence
Visual designs, Pascal code, platforms and reusable components
vendor · checked 2026-10-07Object Pascal application code
supportedApplication behavior uses Pascal classes and APIs, including transform behaviors and views.[2]
Building 2D/3D games with visual design and Object Pascal code · Windows, macOS, Linux, FreeBSD, Android, iOS, Web · Version, build and integration requirements apply
1 source · check evidence
Transforms, behaviors, viewports and owner versus parent
vendor · checked 2026-10-07glTF asset import
limitedGLB/glTF and several extensions are supported, but the current guide lists morph targets as missing and describes specific animated-collision behavior.[3]
Building 2D/3D games with visual design and Object Pascal code · Windows, macOS, Linux, FreeBSD, Android, iOS, Web · Version, build and integration requirements apply
1 source · check evidence
Formats, extension coverage, morph-target gap and animated collision
vendor · checked 2026-10-07Web deployment
limitedThe WebAssembly/WebGL route is in intensive development; browser loop, storage and window limitations require project-specific review.[5]
Building 2D/3D games with visual design and Object Pascal code · Windows, macOS, Linux, FreeBSD, Android, iOS, Web · Version, build and integration requirements apply
1 source · check evidence
Intensive development, single canvas, persistence TODOs and browser event-loop limits
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
Unity for Building 2D/3D games with visual design and Object Pascal code
limitedAssessment: 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.[1][2][3][5][7]
Windows, macOS, Linux, FreeBSD, Android, iOS, Web · Version, build and integration requirements apply
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
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 1318 | 2026-10-14 01:51:01 | /* wbeditentity-create-item:0| */ sf:93997104-dad8-4b31-a426-a894b177d5b4:v1 | Adds Castle Game Engine with distinct core/editor/example licensing, Pascal behavior architecture, glTF limits and a qualified Unity migration assessment. Web d | attribution: /proposals/93997104-dad8-4b31-a426-a894b177d5b4 |