2015년 6월 26일 금요일

corona sdk 에서 tiled 사용하기 18 – Saving Space with Map Formats


https://github.com/anthonymoralez/lime-tutorials/tree/master/tutorial-18


 README.md



NOTE: This tutorial is copied from the original at OutlawGameTools.com

18 – Saving Space with Map Formats (맵 포맷을 가지고 용량 절약)

Difficulty: Beginner
Duration: 5 minutes
Description:
Using a compressed map format can save you vital space, and it is also really simple to do.
tiled에서 압축 포맷을 가지고 용량을 줄일 수 있다고 하나, 현재 버전 툴에서는 무조건 base64 zip압축이 되어 있는것 같습니다. 따라서 아래 선택 화면도 뜨지 않습니다. 그래서 해당 페이지는 안봐도 됩니다.

Step 1: Getting your map

For this tutorial I am going to use the map created in the first tutorial however you can use any you like.

Step 2: Choosing a format

There are five different formats that Tiled, and thus Lime, supports. The regular XML format we have been using so far as well as CSV and three variants using Base64.
For now we are going to use ZLib however the process is the same for any of them, simply load up the Preferences window and then set the save format for Tile Layer data.
ZLib Compressed
Now simply hit Close and then resave your map. You don’t need to change any code whatsoever. To see the difference just load up your map in a Text Editor and notice the change.
Resources:
Completed Project: git clone https://github.com/anthonymoralez/lime-tutorials

댓글 없음:

댓글 쓰기