C++20 reimplementation of the Playground runtime, with documentation, examples and compatibility tests. Work in progress.
Find a file
2026-10-02 16:54:36 +00:00
audio Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
cmake Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
core Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
docs Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
examples Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
gfx Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
platform Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
tests Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
third_party Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
ui Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
.gitignore Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
build.bat Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
CMakeLists.txt Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
README.md Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
THIRD_PARTY.md Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
verify-consumer.bat Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00

Playground SDK source (early extraction)

An independent C++20 source package extracted from the modern Playground engine reimplementation. This is an early, incomplete SDK for applications that supply their own data. It contains no Chocolatier assets, scripts, game logic, original binaries, or decompiled output.

Build (Windows)

From an MSVC 2022/2026 developer shell:

./build.bat Release

build.bat uses the currently installed Visual Studio 18 toolchain. For another environment, use ordinary CMake with C++20. -DPLAYGROUND_USE_SYSTEM_SDL=ON uses installed SDL3 packages. -DPLAYGROUND_BUILD_GRAPHICS=OFF builds the core and generic pointer controls only. Run ctest --test-dir build --output-on-failure after building.

playground_example opens an 800 × 600 window. Click the rectangle to close it. It requires no game assets. Run verify-consumer.bat after build.bat to install the exported core/UI/Lua targets locally and compile a separate find_package(Playground) consumer.

Modules

  • playground_core: read-only PFPK/loose VFS, zlib and ZXML decoding, XML string table, versioned local save snapshot codec.
  • playground_gfx: SDL3 display, image cache and 2D drawing, MVC4 font rendering with optional fonts/default.ttf, character atlas metadata and texture rendering.
  • playground_audio: Ogg Vorbis decoding/playback and a partial CADI bank reader. A CADI bank must be explicitly supplied with Audio::setCadiBankPath.
  • playground_ui: pointer button/slider state only.
  • playground_lua: patched Lua 5.0.2 parser and VM for the observed Playground dialect (continue, bitwise operators, and extra bytecode opcodes). It does not include game Lua scripts.

Headers remain source level APIs. There is no ABI stability promise yet. Sources use namespace playground. The install/export package currently exposes Playground::playground_core, Playground::playground_ui, and Playground::playground_lua. Graphics and audio build from this source tree but are not exported until vendored SDL dependency packaging is resolved.

Ownership and license

The SDK glue and reimplementation code in core/, platform/, gfx/, audio/ and ui/ was written for this project. No license is granted for those directories pending the project owner's licensing decision. See THIRD_PARTY.md for vendored dependency licenses. The package does not grant rights to any game data.

Current limits

See API coverage. In particular, Lua menu binding and complete game simulation are outside this extraction. MVC4/CADI support is based on the formats observed during reimplementation and is not a general guarantee for every Playground title.