src code

instance method Component#render

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

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

Subclasses of Component override this method, and render how it should be rendered. This default implementation does nothing, since a Component itself cannot be rendered/instantiated.