LuigiC is a native C AI engine for the Super Mario World C-reimplementation. It uses real-time state simulation and A* search to find the best path through a level.
The engine runs at a stable 60 FPS, and the depth of its "thinking" scales based on how much power your hardware has.
showcase.mp4
- Download the latest release from the Releases section on the right.
- Extract the zip file to a folder.
- Required: Place your legally obtained
smw.sfc(USA version) file into that same folder. - Run
smw.exe. - Press Tab to activate the AI!
| Key | Action |
|---|---|
| Tab | Toggle AI |
| Q | Open in Map (Custom Save/Load) |
Due to GitHub upload limits, the full source code is available as a zip file
Its planned to upload the source code viewable on github in the future
It includes Visual Studio solutions and a Makefile for MSYS2 (GCC)
- Doors: The AI currently can't use doors. Doors are teleports from Point A to B with no physical path between them, so the AI just sees them as "nothing".
- Beta Phase: This is still in Beta. Luigi might occasionally jump into a pit or do something unintended. Nobody is perfect.
- Game Logic: Some levels aren't 100% possible to finish yet due to bosses or complex level mechanics that don't fit into advanced pathfinding without requiring to scale the project 5x.
- Auto-Scroll: Auto-scroll levels are tough because the AI can't calculate a path for parts of the level that haven't loaded yet.
Windows Smart App Control (SAC) will likely block this because it’s a native C project without a paid Microsoft certificate.
- To run this, you will need to disable SAC or "Unblock" the file in Properties.
- The code does NOT contain malware. The full source code is right here for you to check.
- License: MIT License.
- Assets: This project contains zero Nintendo assets. You must provide your own
smw.sfcROM to extract the game data. - Attribution: This is an extension of the
snesrev/smwproject.
