Upgrade to Pro — share decks privately, control downloads, hide ads and more …

さぁTilemapを始めよう!

 さぁTilemapを始めよう!

2018/01/31に開催された#Gotauni No.4の@RyotaMurhoshiの発表資料です

RyotaMurohoshi

January 31, 2018
Tweet

More Decks by RyotaMurohoshi

Other Decks in Technology

Transcript

  1. ෭๜Android΄տ Unity᮱ͽͩΩ΀ͩ;Κ͹ͼΔͯ • UniBook6 Hello Programmable Tile! • UniBook8 TilemapConverterͽ਍ΌTilemap΄πЄϖ

    • ଙ๛LT2016 TileMapEditor΅͚͚ʹѺ Θ͜ݘͥ΀͹͵ΩͽΌ͹ͷΙͧ抎Δ΀ͥͼ͚͚ͽͯѺ
  2. Pixels Per Unit • Sprite͢τЄЀͽൈኮͫ΢͵檭΄य़ͣͫΨ抠ෆͯΡ • UnityӤͽ΄槱ͫ1΁ፘ୮ͯΡϡμψϸහ • 1旽͢32ϡμψϸ΄ኮ؟͘͢͹͵;ͭͼ̵ •

    Pixels Per Unit͢32 : य़ͣͫ΅1 • Pixels Per Unit͢16 : य़ͣͫ΅2 • ྋො୵΄ኮ؟΀Ο1旽΄ϡμψϸහΨPixels Per Unit΁
  3. 2 : TilePallete΄֢౮ 1. ϮϘϲЄ΄ Window > Tile PalleteΨ晝䝑 2.

    Tile Pallete Window΄ૢӤ΄̿Create New Pale5èΨೀӥ 3. Name΁ϞϹϐϕݷΨفێͭCreateϩόЀΨೀͯ
  4. GridπЀϪЄϚЀϕ • Cell Size : ψϸ΄य़ͣͫ • Cell Gap :

    ψϸ;ψϸ΄ᵐ樌΄य़ͣͫ • Cell Swizzle : Tilemap΄ଘᶎҁϔϢζϸϕ΅XYଘᶎ) ͩ΄戔ਧ΅̵ͯΏͼ΄ৼTilemapοЄϭηϣυδμϕ΁䌏ͭͼ晒䖕
  5. TilemapRendererπЀϪЄϚЀϕ ൈኮ戔ਧΨݪΠSpriteRenderer;و᭗΄殻ፓΨ೮ͺ • Sor%ng Layer • Order In Layer •

    Mask Interac%on ᙧวϹαϱЄ独ڹᶎϹαϱЄͳͭͼκϰ϶μόЄҁSpriteRenderer҂Ε͵͚΁ൈኮ殼ଧΨګகͽͣΡ
  6. τϴЄϕθϐϕ1 • s : 塅㾨晝䝑 • m : 塅㾨晝䝑ͭ͵᮱ړΨᑏ㵕 •

    b : 晝䝑Ӿ΄όαϸͽൈኮ • u : Ꭵ୵䂍ΠͺΌͭ • g : 毎ऒ䂍ΠͺΌͭ • shi+ / d : ڷᴻ
  7. τϴЄϕθϐϕ2 • Ctrl(Wim) / Cmd(Mac) Θͭͥ΅ i : φϪαϕ毎ऒ晝䝑 •

    . (Win) / } (Mac) 䦒懯ࢧΠ90ଶࢧ敢 • , (Win) / { (Mac) ݍ䦒懯ࢧΠ90ଶࢧ敢 • Shi; + . (Win) / Shi; + } (Mac) ࣮ፗොݻݍ敢 • Shi; + , (Win) / Shi; + { (Mac) ࿜ଘොݻݍ敢
  8. • Grid • Cell Size : 0.75 • Scale :

    0.5 • Tilemap • Transform Rota<on : 45 • Tilemap Rota<on : 315 • Tilemap Scale Y : 2 • Sort Order : Top Right