Class: GamesAndRpgParadise::Earth2
- Inherits:
-
Chingu::GameObject
- Object
- Chingu::GameObject
- GamesAndRpgParadise::Earth2
- Defined in:
- lib/games_and_rpg_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
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 |
#setup ⇒ Object
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 |
#update ⇒ Object
436 437 438 439 |
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/objects.rb', line 436 def update @x += @motion @motion *= @easing end |