How love2d/love works
Project type and purpose
• This is a cross-platform game engine/framework ("LÖVE") written in C++ with Lua bindings.
• It targets Windows, macOS, Linux, Android, and iOS to let developers write 2D games in Lua.
File structure
• Top-level: build scripts (CMakeLists.txt, extra/cmake), platform folders (xcode, unix, Windows resources), source root (src/), and test suite (testing/).
• src/common: the engine’s core runtime, data structures, platform abstractions.
• src/libraries: in-tree copies of third-party dependencies (SDL2, OpenGL loaders, physics engines, image/codecs, audio, networking, Vulkan, Metal, etc.).
• src/modules: feature modules exposed to Lua (audio, graphics, physics, input, file I/O, networking, threading, etc.), each with C++ implementation + Lua wrappers.
• platform/*: OS-specific entry points, installers, resource files.
• testing/: integration tests invoking the engine as a normal LÖVE project.
README for additional insights
• Engine uses SDL3 for windowing, input, audio.
• Supports multiple rendering back-ends: OpenGL, Vulkan, Metal.
• Exposes all engine functionality via Lua C API wrappers.
• Uses CMake to generate platform builds and integrates Apple frameworks for iOS/macOS.