Powerful cross-platform game engine with visual editor and modern Pascal codebase
Castle Game Engine (CGE) is a free and open-source 3D and 2D game engine designed for developers who want to create games across desktop, mobile, and console platforms using modern Pascal. Built with performance and maintainability in mind, it provides a comprehensive toolset including a visual editor, command-line build tools, and deep integration with popular IDEs like Lazarus, Delphi, and VS Code. The engine supports industry-standard formats such as glTF, X3D, and Spine, enabling developers to import complex 3D assets without vendor lock-in. Its LGPL license with static linking exception allows commercial and closed-source game development while encouraging contributions to the engine core.
CGE is ideal for indie developers, hobbyists, and small studios who value clean code, cross-platform deployment, and a full-featured visual editor without relying on heavy C++ engines. With built-in support for physically based rendering, shadows, mirrors, and composable shader effects, it delivers professional-grade visuals while maintaining a lightweight and accessible codebase written in Object Pascal.
castle-engine CLI to build, package, and deploy projects from terminal: castle-engine build --target=windows or castle-engine package --format=zip.castle_engine_lcl.lpk to use TCastleControl on forms, or install Delphi packages for IDE menu integration under “Tools → Castle Game Engine”.castle-engine package --target=android.The Castle Game Engine is a cross-platform game engine built primarily in Pascal, designed for 2D and 3D game development with a strong emphasis on modularity, extensibility, and integration with the Lazarus IDE. It offers a rich set of features for multimedia handling, rendering, and user interface management, making it a versatile choice for developers working within the Pascal ecosystem.
The engine follows a layered and component-based architecture that promotes clear separation of concerns across domains like graphics, audio, and input handling. It leverages design patterns such as abstract factories and strategy to support flexible backend selection.
The engine is built using Pascal, with extensive integration into the Free Pascal Compiler and Lazarus IDE. It utilizes system-level libraries for multimedia support and cross-platform compatibility.
The codebase reflects mature development practices with consistent style, good organization, and support for multiple platforms. It balances extensive functionality with maintainable structure.
Castle Game Engine stands out through its deep integration with the Pascal ecosystem and its flexible architecture that enables extensive customization without core modifications.
AI Development · Automation · Developer Tools
Build and deploy AI workflows visually—with code access and API export
AI Development · Design Tools · Developer Tools
Build AI agents and workflows visually — from prototype to production.
Developer Tools · File Storage · Security
Self-hosted remote desktop with P2P, file transfer, and multi-platform support