YouTube

Got a YouTube account?

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

English subtitles

← Manage spawn entity - HTML5 Game Development

Get Embed Code
4 Languages

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

  1. Thanks. Now let's take a look at this. Simply we can take in the typename and
  2. have a series of if statements checking the typename against a given class name
  3. that we're interested in. If we find a match, we can return a new instance of
  4. that class out from the spawnEntity function.