Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

13 | Cocos2D-JS | How create a tilemap #14

Open
Gurigraphics opened this issue Apr 30, 2018 · 0 comments
Open

13 | Cocos2D-JS | How create a tilemap #14

Gurigraphics opened this issue Apr 30, 2018 · 0 comments

Comments

@Gurigraphics
Copy link
Owner

Gurigraphics commented Apr 30, 2018

13 | How create a tilemap

Step 1

Save this image in folder "res" as "tileset.png"
enter image description here

Step 2

Download the Tiled, export and run -> link

Step 3

Create new map
enter image description here

Step 4

Set the configurations:
enter image description here
Orientation: Orthogonal
Tile layer format: Base64 (zlib compressed)
Tile render order: Right Down
Map Size. Fixed: 40 tiles by 30 tiles (640x480)
Tile Size: 16px by 16px

Step 5

Save As... "map.tmx"
Save inside folder "res".

Step 6

Click in "New Tileset" or in "icon"
enter image description here

Step 7

Set configurations:
enter image description here
Name: tileset
Type: Based on Tileset Image
Select "Embed in map"
Click in "Browse" and select the "image"
Tile width: 16px
Tile height: 16px
Click ok

Step 8

Draw a tilemap and click in save
enter image description here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant