2025-09-02 12:02:42 -07:00
2025-08-29 10:37:31 -07:00
2025-08-28 09:42:00 +02:00
2025-08-28 09:42:00 +02:00
2025-08-29 10:39:25 -07:00
2025-08-28 09:42:00 +02:00
2025-08-28 09:42:00 +02:00
2025-08-28 09:44:18 +02:00
2025-08-28 09:42:00 +02:00
2025-08-31 20:36:54 -07:00

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:

Screenshot

Cloning

When you clone, MAKE SURE YOU RUN git submodule update --init --recursive IN THE ROOT OF THIS REPOSITORY JUST TO BE SAFE

Run

This is just an experiment

First, make sure you've set up Lean properly on your computer.

If you are 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)

Follow the "legacy" instructions from here (They should work on Linux, WSL, and MSYS2): https://leanprover-community.github.io/install/linux.html

Second, make sure you run the build script first to build all the dependencies to get this to work

chmod +x ./build_sdl_and_friends.sh
sudo ./build_sdl_and_friends.sh

Then you can run the game proper

lake exe LeanDoomed

License

MIT

Description
No description provided
Readme 312 KiB
Languages
Lean 73.4%
C 23.8%
Just 2.8%