Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

accelerate() => acceleration() name consistency

  • Loading branch information...
commit b6463dde98f0408dfb9a09ab9b84fa845535825d 1 parent 711c561
@ippa authored
View
4 lib/action.rb
@@ -95,9 +95,9 @@ def finalize
end
#
- # ACCELERATE
+ # ACCELERATION
#
- class Accelerate < SpriteAction
+ class Acceleration < SpriteAction
def initialize(options = {}, acceleration = [0,0])
super(options)
@acceleration_x = acceleration[0]
View
4 rubygame_movie_maker.rb
@@ -180,8 +180,8 @@ def gosu_update(current_time)
@updated_count = 0
# Restart movie cleanly?
- if current_time > @restart_at
- end
+ #if current_time > @restart_at
+ #end
@onetime_actions.select { |action| action.started?(current_time) and !action.finalized? }.each do |action|
#puts "onetime action: #{action.start_at} - #{action.stop_at}" + action.class.to_s
View
2  samples/gosu_river_of_stars.rb
@@ -17,7 +17,7 @@ def setup_movie
@movie.zoom(0.2)
@movie.between(start/10.0, start/10.0 + 2)
@movie.velocity([10,0])
- @movie.accelerate([0, 0.05 + rand(0.1)])
+ @movie.acceleration([0, 0.05 + rand(0.1)])
@movie.rotate(angle = 90 * rand(10))
@movie.zoom(1.0 + rand(2.0))
@movie.fade_out.then.color(0x00FFFFFF)
Please sign in to comment.
Something went wrong with that request. Please try again.