Class: Battle::Visual::IdlePokemonAnimation

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

Overview

Animation shown when a Creature is currently selected and wait for the player to choose its actions

Constant Summary collapse

OFFSET_SPRITE =

Pixel offset for each index of the sprite

[0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0]
OFFSET_BAR =

Pixel offset for each index of the bar

[0, -1, -2, -3, -4, -5, -5, -4, -3, -2, -1, 0]

Instance Method Summary collapse

Constructor Details

#initialize(visual, pokemon, bar) ⇒ IdlePokemonAnimation

Create a new IdlePokemonAnimation

Parameters:



404
405
# File 'docs/5_Battle_02_Visual.rb', line 404

def initialize(visual, pokemon, bar)
end

Instance Method Details

#remove

Function that rmoves the idle animation from the visual



410
411
# File 'docs/5_Battle_02_Visual.rb', line 410

def remove
end

#update

Function that updates the idle animation



407
408
# File 'docs/5_Battle_02_Visual.rb', line 407

def update
end