cdmckay / tmxjs Goto Github PK
View Code? Open in Web Editor NEWA JavaScript, jQuery and RequireJS-based library for reading, manipulating and writing TMX (Tile Map XML) files.
License: Apache License 2.0
A JavaScript, jQuery and RequireJS-based library for reading, manipulating and writing TMX (Tile Map XML) files.
License: Apache License 2.0
Hi!
I want to use tmxjs to export pseudo randomly generated tilemaps to tmx-files. While working with the basics (generate maps, tilesets, ...) I found out that our tileset-image isn't perfectly sized (it's 1366x1007). Something like that can happen fairly easy (I know it's sloppy). A tile is 24x24. So they are 56 columns and 41 rows of tiles. Your algorithm for automatically generate tiles is using the imageInfo and tileInfo. You are using the imageHeight and imageWidth to find out if next to the current position another tile is waiting. When the tileset-image isn't perfectly sized than tiles are created which aren't there. I think it could be better to use the number of columns and rows to calculate the tile-boundaries because that will work always.
What's your opinion on that? Thanks
Even better would be to use the tilecount attribute which was added in version 0.13 to the tmx map format. http://doc.mapeditor.org/reference/tmx-map-format/
Is this possible ? For example depending on a property for the tile I want the active layer to automaticly change
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.