Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Tileset Array - HTML5 Game Development

Get Embed Code
5 Languages

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

  1. >> Much like loading the map data parameters itself, loading from the tile sets
  2. is pretty straight forward. All you have to do is create a new object and set
  3. its properties equal to those that are defined in the map objects. For example,
  4. first GID, image height, image width, name, etc. You'll also notice that we pass
  5. off the image parameter to the one that we actually just loaded in the previous
  6. quiz. We also commute the number of x and y tiles for this atlas by dividing its
  7. width and height by the tile size defined in the global map object.