Class: MG::RotateBy

Inherits:
Action show all
Defined in:
doc/API_reference.rb

Instance Attribute Summary

Attributes inherited from Action

#done?

Constructors collapse

Methods inherited from Action

#clone, #reverse

Constructor Details

#initialize(delta_angle, interval) ⇒ Sprite

Creates an action that will rotates the position of the receiver to a new angle determined by the sum of the current rotation and the given delta_angle object.

Parameters:

  • delta_angle (Float)

    the angle to add to the current rotation

  • interval (Float)

    the animation interval.



98
# File 'doc/API_reference.rb', line 98

def initialize(delta_angle, interval); end