Class: Earth2

Inherits:
Chingu::GameObject
  • Object
show all
Defined in:
lib/games_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



430
431
432
# File 'lib/games_paradise/gui/gosu/chinguroids/objects.rb', line 430

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

#setupObject



424
425
426
427
428
429
# File 'lib/games_paradise/gui/gosu/chinguroids/objects.rb', line 424

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

#updateObject



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

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