Class: GamesAndRpgParadise::Earth2

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

Overview

EARTH 2

used in Ending2 gamestate

Instance Method Summary collapse

Instance Method Details

#motion_easingObject

method called in Ending2 gamestate



433
434
435
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/objects.rb', line 433

def motion_easing  # method called in Ending2 gamestate
  @easing = 0.994
end

#setupObject



427
428
429
430
431
432
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/objects.rb', line 427

def setup
  @image = Image["media/assets/future_earth2.png"]
  self.factor = 1.2
  @motion = 0.34
  @easing = 1.0
end

#updateObject



436
437
438
439
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/objects.rb', line 436

def update
  @x += @motion
  @motion *= @easing
end