Class: MG::Parallax

Inherits:
Node
  • Object
show all
Defined in:
motion-game

Instance Attribute Summary

Attributes inherited from Node

#alpha, #anchor_point, #color, #name, #position, #rotation, #scale, #size, #visible?, #z_index

Container (collapse)

Methods inherited from Node

#children, #clear, #delete, #delete_from_parent, #intersects?, #parent

Instance Method Details

- (Node) add(node, zpos, parallax_ratio, position_offset)

Adds the given Node object to the receiver and configure it in the parallax view.

Parameters:

  • node (Node)

    the node to add to the receiver.

  • zpos (Integer)

    the local z-order.

  • parallax_ratio (Point)
  • position_offset (Point)

Returns:

  • (Node)

    the child node.



358
# File 'motion-game', line 358

def add(node, zpos, parallax_ratio, position_offset); end