https://github.com/suppayami/unity2d-tmx
A small library to import and render tilemap in Unity2D, only support TMX file format.
https://github.com/suppayami/unity2d-tmx
Last synced: 5 months ago
JSON representation
A small library to import and render tilemap in Unity2D, only support TMX file format.
- Host: GitHub
- URL: https://github.com/suppayami/unity2d-tmx
- Owner: suppayami
- License: mit
- Created: 2014-02-09T15:19:01.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-17T10:38:48.000Z (about 12 years ago)
- Last Synced: 2024-11-18T09:33:36.959Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 195 KB
- Stars: 14
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- 3d-resources - Unity2D TMX
README
LunaTMX - Unity2D Tilemap Importer
===========
A small library to import and render tilemap in Unity2D, only support TMX file format.
### Features
1. Import TMX Map into a Texture2D
2. Support Auto-Detect Collision with Polygon Collider 2D
3. Support as many as you want tilesets for a layer
### Usage
##### Tiles
Draw and naming your layers, be careful with naming, layer with **[C]** prefix will have a collider component.
##### Collision
Name your layer with **[C]** prefix for automatically detecting collision.
##### Save TMX
Use CSV data type and save with **.TMX** extension, then change that extension into **.XML**.
##### Unity Usage
1. Create a folder inside Asset directory named **Resources**
2. Import all scripts, also import **TMX** files
3. Import all Tilesets image into a folder inside **Resources** directory we created above, also set those Texture Type to Advanced and tick Read/Write Enabled box
4. Add **TileMap.cs** to an empty Game Object and follow the instruction.
### License and Credit
© 2014, SuppaYami - Cuong Nguyen
Released under the MIT license
Check LICENSE for more details.