Comments (3)
I think all that would do is for people to start worrying that the layers may not always be stored in-order or that gaps may exist in the layer stack. So, why?
from tiled.
The main reason for asking this is that it makes it easier to parse the TMX-file. In my case I'm not retrieving nodes in the XML with an XPath expression (like map/layer|map/objectgroup) but parsing the different types of layers in order (tile layers then object groups). I could change this logic, but I thought it would be a good suggestion of not relying on the order things are written in the XML, but explicitly telling the order.
from tiled.
Even if you first parse all tile layers and then all objects groups, you apparently iterated all of them at some point in order to determine which layers are there, and I don't see the problem with assigning them indexes in that moment.
Since this information is clearly redundant, I would prefer to leave it out.
from tiled.
Related Issues (20)
- Setting object.polygon in script makes all points (0,0) HOT 5
- Define own tooltips for custom properties HOT 1
- Custom origin points for Objects
- Rendering specification in case map's tile size does not match tileset's tile size HOT 2
- Support QOI image format
- Change Origin to Bottom Left of Map HOT 1
- For Terrains, a more visually-friendly, more detailed, zoomable grid view HOT 5
- Be able to add tags/labels to Terrains for sorting HOT 1
- "Remove Unused Tilesets" export option
- OS-specific shortcuts resetting on other platforms
- Automapping: Explicitly detect map edges HOT 9
- Zooming is wonky outside map bounds
- Allow changing default Object colour HOT 1
- Incorrect behavior of brushes when zooming in/out with the mouse wheel. HOT 2
- Fix image collection id gaps HOT 3
- Update godot 4 exporter to use the new tile rotation/flipping system in godot 4.2 HOT 4
- tmxviewer can't view json-based maps HOT 1
- tmxrasterizer as a git diff tool: override search path, and allow explicitly writing to stdout HOT 2
- Why Y coord have decrease as this go up (offset, objects position) ? HOT 1
- Godot 4 Exporter tscn files not updating HOT 2
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.