Awesome Open Source
Awesome Open Source

Castle Game Engine

"Castle Game Engine" is an open-source cross-platform 3D and 2D game engine.

We have many graphic features (physically-based rendering, shadows, mirrors, screen effects, gamma correction...) and support many data formats for game assets (glTF, X3D, Spine JSON, Collada, ...). We have many user-interface components, with a powerful viewport to display 3D or 2D content. We're cross-platform (desktop, mobile, Nintendo Switch).

See for the complete list of engine features.


  • Manual is the most recommended way to learn the engine.

  • API reference.

    It is also available offline in the engine archive (if you downloaded the binary engine release), just open the file doc/reference/index.html in your WWW browser.

  • Numerous examples are provided in the examples/ subdirectory.

  • Guide to creating game data.

Questions? Talk to us on forum or Discord chat.

Support us on Patreon.

Installation and building your first application

See the Installation and building your first application manual page.

If you got this source code straight from our GitHub repository then read first Compiling from source.

In short:


The engine is available on the terms of LGPL >= 2 license with "static linking exception". This is the same license as used by FPC RTL and Lazarus LCL. In short, you can make commercial and closed-source games using the engine, you only have to share your modifications to the engine core. See for details.

Have fun!


This is the life project of Michalis Kamburelis.

Thank you to all the contributors for developing the engine with me throughout the years. Keep it going please :)

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Pascal (8,970
Cross Platform (3,250
Game Engine (2,494
Engine (1,498
Delphi (1,248
Lazarus (296
Freepascal (281
2d Game Engine (247
Gltf (219
Fpc (189
3d Game Engine (124
Related Projects