Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dasannikov/defoldtypescript
TypeScript support for Defold game engine
https://github.com/dasannikov/defoldtypescript
defold defold-game-engine defold-library game-development transpiler typescript webgame
Last synced: 3 months ago
JSON representation
TypeScript support for Defold game engine
- Host: GitHub
- URL: https://github.com/dasannikov/defoldtypescript
- Owner: dasannikov
- Created: 2018-04-05T08:09:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-17T07:16:11.000Z (over 4 years ago)
- Last Synced: 2024-10-04T22:08:31.844Z (4 months ago)
- Topics: defold, defold-game-engine, defold-library, game-development, transpiler, typescript, webgame
- Language: TypeScript
- Size: 1.04 MB
- Stars: 49
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![](img/logo.jpg)
# TypeScript support for Defold game engine
TypeScript declaration files for Defold API.## How to Install and Use.
![VS Code Defold TypeScript](img/vscode.jpg?raw=true "VS Code Defold TypeScript")
- This repo has only TypeScript declaration files for Defold API.
- It's **recommended** to download and use Defold project template from [GitHub Releases](https://github.com/dasannikov/DefoldTypeScriptHello/releases)
- Or clone (you have to clone!! it has submodules) this [GitHub repository](https://github.com/dasannikov/DefoldTypeScriptHello)## Code Generation
Using TypeScript you get strong type check, typed arguments, classes, inheritance and more. All reflects to Lua basic constructions. TS to Lua work the same way as TS to JS. Very useful for big projects development. Generated Lua code is very clean and human readable.## TODO
- (DONE) Auto generate `defold.d.ts` file with full Defold support.
- (DONE) Add types to function's arguments where it's possible.
- (DONE) Add build system.
- Further development of [TypeScript to Lua Transpiler](https://github.com/Perryvw/TypescriptToLua)