Skip to content

Component

Isuru Kusumal Rajapakse edited this page Jun 17, 2017 · 1 revision

new Component()

  • Represents a base components that defines a behavior
Returns
  • Void

Component.responds()

assigns a component manager for this component

Returns
  • Component itself

Component.initialise()

defines how a component should initialise after attaching to it's game object

Returns
  • Void

Component.process()

defines how a component state change on one update call

Returns
  • Void

Component.render(c, camera)

defines how a component should be handling rendering calls

Parameters
Name Type Description
c context - the canvas context to draw the sprite on.  
camera Camera - the camera to look at the sprite from.  
Returns
  • Void

Clone this wiki locally