029eb54e64ef5b6f87ec2db1dfa43dae38e41441
Copy all binaries for SDL and Lean on both Windows and Unix
Lean SDL3 Bindings Example
Playing around with SDL3 bindings in Lean4 to learn about the FFI.
Simple real-time Doom-style raycasting engine in Lean4:
Run
Unix (Linux, Mac)
# Install elan if this is your first time using Lean
curl https://elan.lean-lang.org/elan-init.sh -sSf | sh
# Clone project and submodules (SDL3 etc)
git clone --recurse-submodules https://github.com/oOo0oOo/LeanDoomed.git
cd LeanDoomed
# Build dependencies
chmod +x ./build_sdl_and_friends.sh
sudo ./build_sdl_and_friends.sh
# Run the "game"
lake exe LeanDoomed
Windows (MSYS2 or WSL)
On Windows, use MSYS2 or WSL!
IMPORTANT: FOR MSYS2, MAKE SURE YOU ARE USING THE "CLANG" SHELL TO RUN EVERYTHING!
For more information on MSYS2, see: https://github.com/leanprover/lean4/blob/master/doc/make/msys2.md
Next, follow the instructions for Unix above.
License
MIT
Description
Languages
Lean
73.4%
C
23.8%
Just
2.8%
