Method: RPG::Animation#initialize

Defined in:
lib/rpg/animation.rb

#initializeAnimation

Returns a new instance of Animation.



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/rpg/animation.rb', line 3

def initialize
  @id = 0
  @name = ''
  @animation1_name = ''
  @animation1_hue = 0
  @animation2_name = ''
  @animation2_hue = 0
  @position = 1
  @frame_max = 1
  @frames = [RPG::Animation::Frame.new]
  @timings = []
end