Skip to content

jessechounard/Lucky

Repository files navigation

Lucky

A C++ game framework built on SDL3 and SDL_GPU.

Building

Prerequisites

  • Visual Studio 2022 with the v143 toolset.
  • shadercross must be on your PATH. Lucky's HLSL shaders are cross-compiled to SPIR-V, DXIL, MSL, and JSON reflection at build time using the shadercross command-line tool. The easiest way to obtain a Windows binary is from the unofficial nightly build mirror at nightly.link. Download an artifact, extract shadercross.exe, and place it in any directory on your PATH.

Building Lucky

  1. Clone with submodules:

    git clone --recurse-submodules https://github.com/jessechounard/Lucky.git
    
  2. Open ProjectFiles/Lucky.sln in Visual Studio 2022 and build.

The static library (Lucky.lib) is written to Build/Output/<Configuration>/, and the compiled shader artifacts to Build/Output/<Configuration>/Content/Shaders/. Consumer projects link against Lucky.lib and copy the Content/Shaders/ directory into their own output as a post-build step.

Running tests

The Lucky.Tests project is a console application that runs the unit tests using doctest. After building the solution, run:

Build\Output\Debug\Lucky.Tests.exe

You can also set Lucky.Tests as the startup project in Visual Studio and run it with F5. Pass --help to see doctest's command-line options (filtering by test name, listing tests, etc.).

Dependencies

All dependencies are included as git submodules in Dependencies/:

See Dependencies/LICENSES.md for full license texts.

License

MIT License. See LICENSE.md.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors