Class: GamesAndRpgParadise::Earth1
- Inherits:
-
Chingu::GameObject
- Object
- Chingu::GameObject
- GamesAndRpgParadise::Earth1
- Defined in:
- lib/games_and_rpg_paradise/gui/gosu/chinguroids/objects.rb
Overview
EARTH 1
called in Ending gamestate - trial and error adjustments to slowly zoom into view
Instance Method Summary collapse
Instance Method Details
#fact_ease ⇒ Object
400 401 402 |
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/objects.rb', line 400 def fact_ease @fact_ease = 0.998 end |
#motion ⇒ Object
403 404 405 |
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/objects.rb', line 403 def motion @motion = 0.08 end |
#motion_easing ⇒ Object
406 407 408 |
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/objects.rb', line 406 def motion_easing @easing = 0.998 end |
#setup ⇒ Object
392 393 394 395 396 397 398 399 |
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/objects.rb', line 392 def setup @image = Image["media/assets/future_earth.png"] self.factor = 0.002 @factoring = 1.0045 @motion = 0.0 @easing = 1.0 @fact_ease = 0.999975 end |
#update ⇒ Object
409 410 411 412 413 414 415 416 417 418 419 |
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/objects.rb', line 409 def update @y += @motion @motion *= @easing self.factor *= @factoring if self.factor >= 0.21 @factoring *= @fact_ease end if self.factor >= 0.3142 @factoring = 1.0 end end |