love-ts

For managing TypeScript LÖVE 2D projects.

Usage no npm install needed!

<script type="module">
  import loveTs from 'https://cdn.skypack.dev/love-ts';
</script>

README

LOVE TS

A command line tool to manage and release LÖVE 2D TypeScript projects.

This project is a Work In Progress

It is available for download via NPM.

yarn global add love-ts

LÖVE 2D must be available via the command line (love) for love-ts to run correctly.

Commands

love-ts init

Initializes project files within the current directory. Must be run inside an empty directory.

Once complete, use love-ts to run the project.

love-ts

Runs a project.

Errors are traced back to the source original .ts files where the code failed.

love-ts watch

Runs the project updating as changes are made.

love-ts release

Creates a .love file with all the compiled game files.

  • Copies all resources under res/
  • Copies all dependencies listed in package.json under node_modules

Resources

Resource files should be placed into the res/ folder.

  res/
+   image.png
  src/
    main.ts

main.ts

love.graphics.newImage("res/image.png");