Skip to content
This repository has been archived by the owner on Jan 23, 2018. It is now read-only.

Commit

Permalink
Declare float ivars as floats, for recent Mirah change that uses doub…
Browse files Browse the repository at this point in the history
…le for literal floats always.
  • Loading branch information
headius committed Jul 25, 2010
1 parent f6a49da commit 5af9d75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/garrett/p/serviss/Garrett.duby
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class GarrettView < View
@paint = Paint.new
@paint.setARGB(250, 50, 50, 200)

@y = @x = @radius = 50.0
@vx = @vy = 1.0
@y = @x = @radius = float(50.0)
@vx = @vy = float(1.0)
end

def bounce
Expand All @@ -35,8 +35,8 @@ class GarrettView < View
def move
@x += @vx
@y += @vy
@vx *= 0.99
@vy *= 0.99
@vx *= float(0.99)
@vy *= float(0.99)
end

def on_ball(x:float, y:float)
Expand Down

0 comments on commit 5af9d75

Please sign in to comment.