src code

instance method Component#update

Component#update(updateCount) → undefined
  • updateCount (Number) – The total number of times that Game#update has been called for this game. This value has nothing to do with the number of times this Component has been updated.

Updates the state of the individual Component. This is called in the game loop once this component has been added through Game#addComponent.

This function should be thought of as the "logic" function for the Component.