Home

Awesome

LÖVE 2D TypeScript Project Template

A template LÖVE 2D TypeScript Project made possible with TypeScriptToLua.

You can click Use this template to clone this repo, or download it as a zip.

Scripts

Requires NodeJS and LÖVE 2D within your CLI.

CommandDescription
npm install⏬ Install dependencies
npm run build🔨 Build everything
npm run watch🔨x♾ Re-build Lua files when a TS file is saved
npm start🎮 Start the game
npm run fix:prettier💄 Fixes linting issues
npm run lint💄 Checks for linting issues in code

To distribute the game, see the game distribution wiki page.

External files can be placed in res/ and referenced with res/<filename>.

e.g.

love.filesystem.read("res/input.txt");

Notes

Links