GuglioREAL / love-nx

Switch port of the 2D game engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LÖVE Switch Port

Usage

Running game

Put a LÖVE archive named game.love in the same folder as the NRO file of the latest release. Additionally, you can directly drop the contents of the archive in the folder, as long as it contains a main.lua file.

Development

Build dependencies

For building, you need the devkitA64 from devkitPro setup, along with switch portlibs and libnx. Documentation to setup that can be found here.

Packaging games

To produce self-contained game NRO files, download the latest release, and run the following commands:

# Customize $APP_* vars to your liking

mkdir romfs
cp game.love romfs/game.love # Your game here
"$DEVKITPRO/tools/bin/nacptool" --create "$APP_TITLE" "$APP_AUTHOR" "$APP_VERSION" game.nacp
"$DEVKITPRO/tools/bin/elf2nro" love.elf "game.nro" --icon="$APP_ICON" --nacp="game.nacp" --romfsdir="romfs"

Note: All the required tools to package a game can also be compiled from this repo

Compiling from source

Run one the following command from the project root to build:

./build.sh

NRO and ELF files will be located in the dist folder.

Known differences with PC

  • love.window.showMessageBox() logs arguments to stdout
  • Using LuaJIT v2.1 instead of v2.0

About

Switch port of the 2D game engine


Languages

Language:C++ 57.7%Language:C 34.4%Language:Lua 5.3%Language:HTML 1.4%Language:CMake 0.4%Language:Makefile 0.3%Language:Batchfile 0.1%Language:Objective-C++ 0.1%Language:M4 0.1%Language:Shell 0.1%Language:CSS 0.1%Language:Rich Text Format 0.0%Language:Objective-C 0.0%Language:Roff 0.0%Language:NSIS 0.0%