Class: UI::WeatherSprite::RainAnimation

Inherits:
WeatherSprite
  • Object
show all
Defined in:
docs/5_Battle_02_Visual.rb

Overview

Handles the rain animation in the battle scene

Instance Method Summary collapse

Constructor Details

#initialize(viewport, scene, weather) ⇒ RainAnimation

Initializes the RainAnimation instance

Parameters:

  • viewport (Viewport) —

    The viewport for displaying the animation

  • scene (Battle::Scene) —

    The battle scene instance

  • weather (Symbol) —

    The weather type (:rain, :hardrain)



2879
2880
# File 'docs/5_Battle_02_Visual.rb', line 2879

def initialize(viewport, scene, weather)
end

Instance Method Details

#create_drop_animation(drop_sprite) ⇒ Yuki::Animation::Player

Creates an animation for a single rain drop

Parameters:

Returns:



2897
2898
# File 'docs/5_Battle_02_Visual.rb', line 2897

def create_drop_animation(drop_sprite)
end

#create_drop_sprite

This method returns an undefined value.

Creates all rain drop sprites



2892
2893
# File 'docs/5_Battle_02_Visual.rb', line 2892

def create_drop_sprite
end

#create_weather_animation

This method returns an undefined value.

Creates the rain animation sequence including sound and viewport tone



2888
2889
# File 'docs/5_Battle_02_Visual.rb', line 2888

def create_weather_animation
end

#rain_drop_duration ⇒ Float

Duration of the fall for a single rain drop

Returns:

  • (Float)


2901
2902
# File 'docs/5_Battle_02_Visual.rb', line 2901

def rain_drop_duration
end

#rain_drop_number ⇒ Integer

Number of rain drops to generate

Returns:

  • (Integer)


2905
2906
# File 'docs/5_Battle_02_Visual.rb', line 2905

def rain_drop_number
end

#weather_animation(weather)

This method returns an undefined value.

Starts the rain animation

Parameters:

  • weather (Symbol) —

    The type of rain animation (:rain, :hardrain)



2884
2885
# File 'docs/5_Battle_02_Visual.rb', line 2884

def weather_animation(weather)
end

#weather_sound ⇒ RPG::AudioFile

Audio file for rain weather

Returns:



2909
2910
# File 'docs/5_Battle_02_Visual.rb', line 2909

def weather_sound
end