Updated instructions for running the experiment on Linux or WSL and added setup guidance for Lean.
32 lines
722 B
Markdown
32 lines
722 B
Markdown
# 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
|
|
|
|
This is just an experiment and the build is currently specific to Linux or WSL only
|
|
|
|
First, make sure you've set up Lean properly on your computer.
|
|
Follow the "legacy" instructions from here: 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
|
|
|
|
```bash
|
|
chmod +x ./build_sdl_and_friends.sh
|
|
sudo ./build_sdl_and_friends.sh
|
|
```
|
|
|
|
Then you can run the game proper
|
|
|
|
```bash
|
|
lake exe LeanDoomed
|
|
```
|
|
|
|
## License
|
|
|
|
MIT
|