ts-defold / tsd-template

Boilerplate TypeScript template with @ts-defold
https://ts-defold.dev
MIT License
17 stars 4 forks source link
defold defold-game game-development lua ts-defold-template typescript

Defold TypeScript Template (minimal)

Chat with us!

A dev environment for Defold that transpiles TypeScript into lua using TypeScriptToLua.

Features

Note that you will need to have Node.js installed.

Quick Start

Installation

  1. Fork this template or use degit to download the template locally
npx degit ts-defold/tsd-template my-game
# or
git clone https://github.com/ts-defold/tsd-template.git my-game
  1. Initialize
cd my-game
npm install
  1. Generate
npm run build # Transpile the TypeScript files to lua
# or
npm run dev # Watch for changes and regenerate files on save
  1. Code
code .
  1. Open app/game.project in Defold

TypeScript :heart: Defold