Class: GamesAndRpgParadise::EndKnight

Inherits:
Chingu::GameObject
  • Object
show all
Defined in:
lib/games_and_rpg_paradise/gui/gosu/chinguroids/characters.rb

Overview

END KNIGHT

called in ending.rb, in Ending3 gamestate

Instance Method Summary collapse

Instance Method Details

#setupObject



38
39
40
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/characters.rb', line 38

def setup
  @image = Image["media/assets/knight_left.png"]
end

#updateObject



41
42
43
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/characters.rb', line 41

def update
  @x -= 0.9  # EndKnight starts offscreen and continually moves to the left
end