Giter Club home page Giter Club logo

tsd-template-boom's Introduction

Template Boom

Defold TypeScript Boom Template

CI GitHub License Chat with us!

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

Includes britzl's boom, a game framework built on top of Defold.

This template extends tsd-template. Use that one if you prefer a minimal setup.

Features

  • Full Lua and Defold API type definitions for TypeScript auto-complete and type checking
  • Built-in types for boom
  • Eslint config for handling the caveats of TypeScriptToLua and keeping your code correct
    • yarn lint or npm run lint to run the linter
    • yarn lintfix or npm run lintfix to allow the linter to auto-fix issues
  • Handles script, gui_script, and module exports using familiar ES6 export syntax
  • Full boilerplate game project ready to transpile and go
  • File watcher via yarn dev or npm run dev to transpile on save
  • Optionally run yarn buildO1 or npm run buildO1 to strip source maps, unfold and propagate constants
  • Access a library of types for Defold extensions by running yarn resolve or npm run resolve

You will need to have Node.js installed.

Quick Start

  • Use yarn dev or npm run dev to start a watcher that compiles and emits lua and script when you save
  • Use yarn build or npm run build to just compile your ts, sans watcher

Installation

  1. Fork this template or use degit to download the template locally
npx degit thinknathan/tsd-template-boom my-game
# or
git clone https://github.com/thinknathan/tsd-template-boom.git my-game
  1. Initialize
cd my-game
npm install
# or yarn
  1. Generate
npm run build # Transpile the TypeScript files to lua
# or yarn build
# or
npm run dev # Watch for changes and regenerate files on save
# or yarn dev
  1. Open app/game.project in Defold
  • Start making games with TypesScript!

TypeScript ❤️ Defold

License

MIT

Based on tsd-template (Copyright (c) Justin Walsh (@thejustinwalsh)).

Graphics in the assets folder are CC0 licensed, from Kenney.

tsd-template-boom's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar thinknathan avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

knutsoned

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.