Comments (6)
from tiled-to-godot-export.
Since a while we have an NPM package called
tiled-api
: https://www.npmjs.com/package/@mapeditor/tiled-apiUsing it in an extension enables code completion and API documentation to show up in a JS editor, like VS Code. It would be nice to set this up for this extension as well.
Could you please elaborate a bit on what would you consider "setting this up" for the extension ?
Just having a package.json
for the project with the types package appearing in the devDependencies
?
from tiled-to-godot-export.
Could you please elaborate a bit on what would you consider "setting this up" for the extension ?
Just having apackage.json
for the project with the types package appearing in thedevDependencies
?
Yes, and for the source files to be modified to take advantage of it where necessary. In JS files, you often need type annotations in comments to tell VS Code the type of variables, function parameters and return values.
from tiled-to-godot-export.
Right. I have always found specifying types as JSDoc comments a bit painful, and much prefer the type annotation syntax of typescript. But I guess since we are dealing with the QT JS engine, there's no other way to do it since we don't want to have to rebuild the extension every time something changes.
from tiled-to-godot-export.
Closed by PR #49
from tiled-to-godot-export.
But I guess since we are dealing with the QT JS engine, there's no other way to do it since we don't want to have to rebuild the extension every time something changes.
Right, some extensions are written in TypeScript and just deal with the compilation step somehow, like https://github.com/sponge/keen-tiled. Anyway I'm not advocating to port this extension to TypeScript.
from tiled-to-godot-export.
Related Issues (20)
- Folders not working and animated tiles dont animate HOT 6
- File paths on .tres export HOT 1
- Collision rectangles in wrong spots. HOT 1
- Name error and wrong path HOT 5
- Z Index support HOT 7
- Isometric support? HOT 4
- Exporting Object with Type Area2D HOT 2
- Navigation support? HOT 1
- Tilemap flags - Filter HOT 3
- A couple of new features HOT 11
- Start using JavaScript modules HOT 1
- Animated Tiles do not export to Godot
- Area2D objects have wrong meta exported HOT 1
- Add tests
- Tiled 1.9 future compatibility: API renamed "type" object property to "className" HOT 1
- tileset.asset.fileName returns `null` in export_to_godot_tilemap.mjs
- Godot 4 support HOT 1
- Request support for Collection of images HOT 2
- One-way collisions HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiled-to-godot-export.