Class: UI::MosaicAnimation

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

Overview

Handle the mosaic form change animation in the battle scene

Instance Method Summary collapse

Constructor Details

#initialize(viewport, scene, target, target_sprite) ⇒ MosaicAnimation

Create a new MosaicAnimation

Parameters:



2742
2743
# File 'docs/5_Battle_02_Visual.rb', line 2742

def initialize(viewport, scene, target, target_sprite)
end

Instance Method Details

#finish_mosaic

Finish the mosaic effect and restore the original shader



2757
2758
# File 'docs/5_Battle_02_Visual.rb', line 2757

def finish_mosaic
end

#mosaic_animation ⇒ Yuki::AnimationMixin

Play the Mosaic animation



2746
2747
# File 'docs/5_Battle_02_Visual.rb', line 2746

def mosaic_animation
end

#mosaic_level=(level)

Set the mosaic level on the shader

Parameters:

  • level (Float)


2754
2755
# File 'docs/5_Battle_02_Visual.rb', line 2754

def mosaic_level=(level)
end

#setup_mosaic(level = mosaic_level)

Setup the mosaic effect on the target sprite

Parameters:

  • level (Float) (defaults to: mosaic_level) —

    initial mosaic level



2750
2751
# File 'docs/5_Battle_02_Visual.rb', line 2750

def setup_mosaic(level = mosaic_level)
end