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

Building a 2D Tiled Engine in Unity

Building a 2D Tiled Engine in Unity

Talk given at CodeStock 2014

Michael C. Neel

July 12, 2014
Tweet

More Decks by Michael C. Neel

Other Decks in Technology

Transcript

  1. UTiled Project Goals All Features of Tiled No Size Limit

    Modifiable (destructible environments) “The Unity Way”
  2. The Unity Way Prefabs for Layers Scriptable Objects Unity 4.3

    – Sprites and Spritesheets Colliders from Polygons Editor UI
  3. What a mesh! Sprite object have high overhead “Pixel Perfect”

    Physics issues better in 4.5, but still some remain No Zlib or Gzip compression support in Unity’s Mono Cannot access source image before import processor
  4. 1 (0,0,0) 3 (1,1,0) 4 (0,1,0) 2 (1,0,0) V[] =

    (0,0,0), (1,0,0), (1,1,0), (0,1,0) M*E*S*H Geometry is painless
  5. 1 3 4 2 1 2 1 = 1, 3,

    4 2 = 1, 2, 3 T[] = 1, 3, 4, 1, 2, 3 M*E*S*H Geometry is painless
  6. 1 3 4 2 M*E*S*H Geometry is painless (0,0) (1,1)

    (0,1) (1,0) 0.167 UV[] = (0, 0), (0, 0.125), (0.167, 0.125), (0.167, 0)