11.5.0 • Published 1 year ago

love-typescript-definitions v11.5.0

Weekly downloads
10
License
MIT
Repository
github
Last release
1 year ago

Contains declaration files to build LÖVE 2D projects with TypeScript!

Built for use with TypeScriptToLua. Check out love-typescript-template to get a sample project to build off.

Or run the following in a terminal to try it out:

# Requires NPX and Love2D to be available via cli
npm init -y
npm install -D typescript-to-lua typescript love-typescript-definitions
echo '{ "compilerOptions": { "target": "ESNext", "lib": ["ESNext"], "moduleResolution": "Node", "types": ["love-typescript-definitions", "@typescript-to-lua/language-extensions"] }, "tstl": { "luaTarget": "JIT" } }' > tsconfig.json
echo "love.draw = () => { love.graphics.print('Hello World') };" > main.ts
npx tstl -p tsconfig.json
love .

TIP: Use tstl's watch mode (--watch) if you're after fast and automatic transpilation as files are updated.

Available on NPM.

npm install love-typescript-definitions

Other Definitions / Tools to Help

  • lua-types declarations for the various Lua environments. Allows LuaJIT specific functions to be used.
  • peachy-types for using peachy, a parser/renderer for Aseprite animations in LÖVE.
  • encompass-ecs, a powerful engine-agnostic framework to help you code games, or other kinds of simulations.
  • vscode-typescript-to-lua plugin for VSCode. Highlights errors you'd encounter with TypeScriptToLua and gives tsconfig.json information all within the editor.
  • local-lua-debugger-vscode, a simple Lua debugger which requires no additional dependencies. Works with TypeScriptToLua and LÖVE.
  • TypeScriptGame, an example game made with these declarations by @yancouto
  • tstl-lurker declarations for lurker. Allows code TypeScript code to be hotswapped with a running Lua game.
  • UTF-8 the utf8 module included with LÖVE 2D.
  • tstl-anim8 declarations for anim8, a small animation library for LÖVE.
  • tstl-flux declarations for flux, a fast, lightweight tweening library for Lua.
  • tstl-roomy declarations for roomy, a small screen-management lua module.
  • bump-types declarations for bump.lua, a collision detection library for Lua.
  • lovebird-types declarations for lovebird, a browser-based debug console for the LÖVE framework.
  • bitser-types declarations for bitser, a library helps (de)serialization of Lua values with LuaJIT
  • cartographer-types declarations for cartographer, a small library for loading, reading, and drawing Tiled maps in LÖVE
11.5.0

1 year ago

11.4.3

1 year ago

11.4.2

2 years ago

11.4.1

2 years ago

11.4.0

2 years ago

0.24.3

3 years ago

0.24.2

3 years ago

0.24.1

4 years ago

0.24.0

4 years ago

0.23.0

4 years ago

0.22.1

5 years ago

0.22.0

5 years ago

0.21.0

5 years ago

0.20.3

5 years ago

0.20.2

5 years ago

0.20.1

5 years ago

0.19.0

6 years ago

0.18.0

6 years ago

0.17.0

6 years ago

0.16.1

6 years ago

0.16.0

6 years ago

0.15.1

6 years ago

0.15.0

6 years ago

0.14.0

6 years ago

0.13.0

6 years ago

0.12.1

6 years ago

0.12.0

6 years ago

0.11.2

6 years ago

0.11.1

6 years ago

0.11.0

6 years ago

0.20.0

6 years ago

0.10.0

6 years ago

0.9.9

6 years ago

0.9.7-rc1

6 years ago

0.9.7

6 years ago

0.9.6

6 years ago

0.9.5

6 years ago

0.9.4

6 years ago

0.9.3

6 years ago

0.9.2

7 years ago

0.9.1

7 years ago

0.6.0

7 years ago

0.5.9

7 years ago

0.5.8

7 years ago

0.5.7

7 years ago

0.5.6

7 years ago

0.5.5

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.2-beta.0

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.9.0

7 years ago