2.7 KiB
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 optionalfonts/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 withAudio::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.