English subtitles

← Tileset Array - HTML5 Game Development

Get Embed Code
7 Languages

Showing Revision 6 created 05/24/2016 by Udacity Robot.

  1. Now we're ready for the final step of parsing our map data. We want to keep
  2. track of each tile set that our map loads. So we need to keep an array of
  3. available tile sets in our tile map class. Now what you need to do is while we
  4. are parsing our tile sets, create a new object and populate the array we just
  5. showed you containing all the attributes or our tile set from our data file. For
  6. example, first GID, image, image width, et cetera. Finally we'll need push this
  7. object into our array of tile sets.