This fork is based on the commit 68107ee (From Sep 18, 2025) of the original Lime
HaxeFlixel 6.1.2 running Mode on the Nintendo Switch:
See the video on YouTube, or get the build file here
Switch Funkin' (Psych Engine 1.0.4), real FNF' on Nintendo Switch!
- GitHub
- Gamebanana:
You need to install Haxe and DevKitPro stuff
Once you have Haxe and DevKitPro with DevKitA64 installed, install the dependencies:
(If you are on Linux/macOS, you will most likely need to use sudo dkp-pacman instead of pacman)
pacman -S --needed
switch-bzip2
switch-cmake
switch-curl
switch-flac
switch-freetype
switch-glad
switch-glm
switch-harfbuzz
switch-libdrm_nouveau
switch-libjpeg-turbo
switch-libmodplug
switch-libogg
switch-libopus
switch-libpng
switch-libvorbis
switch-libvorbisidec
switch-libwebp
switch-mesa
switch-mpg123
switch-openal-soft
switch-opusfile
switch-pkg-config
switch-sdl2
switch-sdl2_gfx
switch-sdl2_image
switch-sdl2_mixer
switch-sdl2_net
switch-sdl2_ttf
switch-tools
switch-zlibThen just install this fork with:
haxelib git lime https://github.com/Slushi-Github/lime-nx.gitinstall the dependencies for Lime:
haxelib install format
haxelib install hxpAnd my fork of hxcpp:
haxelib git hxcpp https://github.com/Slushi-Github/hxcpp-nx.gitAnd and generate your Lime library:
haxelib run lime rebuild switchFor now, you must put this in your project.xml, otherwise your program will crash when you open it:
<haxedef name="lime-opengl" if="switch" />
<haxedef name="lime-cairo" value="false" if="switch" />
<set name="LIME_CAIRO" value="0" if="switch" />
<set name="LIME_OPENGL" value="1" if="switch" />and it is also advisable to include this:
<!--Switch-specific-->
<window if="switch" orientation="landscape" fullscreen="true" width="0" height="0" resizable="false" hardware="true" />And now you can compile your project!:
haxelib run lime build switchFor use the run command, you need to add this to your project.xml:
<config:switch ip="192.168.x.x" if="switch"/>or use:
haxelib run lime run switch --ip=192.168.x.xIf the IP is not set, nxlink (The program that sends the project to the Switch) will try to find the Switch automatically if your console is waiting for it, but is recommended to set the IP!
For add more libs (which must be installed in DevKitPro) to the MakeFile (the one responsible for generating the final executable) you need to add this to your project.xml:
<config:switch libs="yourLib1, yourLib2" if="switch"/>Just add the following to your VSCode settings JSON file or the settings.json file in your project folder:
"lime.targets": [
{
"name": "switch",
"label": "Switch",
"enabled": true
}
],
"lime.targetConfigurations": [
{
"label": "Switch",
"target": "switch",
"args": [
"-DHX_NX"
],
"enabled": true
},
{
"label": "Switch / Release",
"target": "switch",
"args": [
"-DHX_NX"
],
"enabled": true
},
{
"label": "Switch / Debug",
"target": "switch",
"args": [
"-debug",
"-DHX_NX"
],
"enabled": true
},
{
"label": "Switch / Final",
"target": "switch",
"args": [
"-final",
"-DHX_NX"
],
"enabled": true
}
]Then the defines for the Switch target (HX_NX, switch) will be valid in your project.
Lime is a flexible, lightweight layer for Haxe cross-platform developers.
Lime supports native, Flash and HTML5 targets with unified support for:
- Windowing
- Input
- Events
- Audio
- Render contexts
- Network access
- Assets
Lime does not include a renderer, but exposes the current context:
- Cairo
- Canvas
- DOM
- Flash
- GL
The GL context is based upon the WebGL standard, implemented for both OpenGL and OpenGL ES as needed.
Lime provides a unified audio API, but also provides access to OpenAL for advanced audio on native targets.
Lime is free, open-source software under the MIT license.
First, install the latest version of Haxe.
Then, install Lime from Haxelib and run Lime's setup command.
haxelib install lime
haxelib run lime setup
When there are changes, Lime is built nightly. Builds are available for download here.
To install a development build, use the "haxelib local" command:
haxelib local lime-haxelib.zip
DO NOT FOLLOW THIS, USE THE ABOVE INSTEAD
-
Clone the Lime repository, as well as the submodules:
haxelib git lime https://github.com/https://github.com/Slushi-Github/lime-nx/ -
Install required dependencies:
haxelib install format haxelib install hxp -
Copy the ndll directory from the latest Haxelib release, or see project/README.md for details about building native binaries.
-
After any changes to the tools or lime/tools directories, rebuild from source:
lime rebuild tools -
To switch away from a source build:
haxelib set lime [version number]
You can build a sample Lime project with the following commands:
lime create HelloWorld
cd HelloWorld
lime test neko
You can also list other projects that are available using "lime create".
Lime currently supports the following targets:
lime test windows
lime test mac
lime test linux
lime test android
lime test ios
lime test html5
lime test flash
lime test air
lime test neko
lime test hl
lime test switch
Desktop builds are currently designed to be built on the same host OS
Have a question? Want a new place to hang out?


