Permalink
Browse files

Player#jump! (as opposed to #jump) works even when not walking.

  • Loading branch information...
1 parent 4583f8f commit 0df3becd82d37e67cd563cb8a411bfe2891e04ed @pda committed Jan 15, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 asc.rb
View
5 asc.rb
@@ -283,7 +283,10 @@ def walk_on_building b
@walking = true
end
def jump
- @velocity = -2.5 if @walking
+ jump! if @walking
+ end
+ def jump!
+ @velocity = -2.5
end
def die!
@dead = true

0 comments on commit 0df3bec

Please sign in to comment.