Skip to main content

Face

Description:

  Represents a definition for a visual component of a game bullet or other visual item.

Class Object: Platformer.Face Class.

Inherits from: Object.

addChild

Type: Function.

Description:

  Adds a child Face definition to it.

Signature:

addChild: function(self: Face, face: Face)

Parameters:

ParameterTypeDescription
faceFaceThe child Face to add.

toNode

Type: Function.

Description:

  Returns a node that can be added to a scene tree for rendering.

Signature:

toNode: function(self: Face): Node

Returns:

Return TypeDescription
NodeThe Node representing this Face.