Class: Earth2
- Inherits:
-
Chingu::GameObject
- Object
- Chingu::GameObject
- Earth2
- Defined in:
- lib/games_paradise/gui/gosu/chinguroids/objects.rb
Overview
EARTH 2
used in Ending2 gamestate
Instance Method Summary collapse
-
#motion_easing ⇒ Object
method called in Ending2 gamestate.
- #setup ⇒ Object
- #update ⇒ Object
Instance Method Details
#motion_easing ⇒ Object
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 |
#setup ⇒ Object
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 |
#update ⇒ Object
433 434 435 436 |
# File 'lib/games_paradise/gui/gosu/chinguroids/objects.rb', line 433 def update @x += @motion @motion *= @easing end |