Class: EndKnight

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

Overview

END KNIGHT

called in ending.rb, in Ending3 gamestate

Instance Method Summary collapse

Instance Method Details

#setupObject



36
37
38
# File 'lib/games_paradise/gui/gosu/chinguroids/characters.rb', line 36

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

#updateObject



39
40
41
# File 'lib/games_paradise/gui/gosu/chinguroids/characters.rb', line 39

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