English subtitles

← Update all the entities - HTML5 Game Development

Get Embed Code
4 Languages

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

  1. Now that we can spawn entities, we need to keep tract of them, update them as
  2. necessary, and kill them off when they refuse to comply with our wishes! In
  3. order to do this, the game engine keeps a list of active entities that it can
  4. then use to iterate over during our update and render functions later.
  5. Implement the functionality in the given code calling each entity's update
  6. method in the given function.