Skip to content

Commit

Permalink
+ admiral steering
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed May 16, 2009
1 parent 48b43b5 commit 85f5087
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/top_down_oriented.rb
Expand Up @@ -38,7 +38,7 @@ def full_speed_ahead factor = acceleration
self.speed += rotation_vector * factor
end
def reverse factor = acceleration
self.speed -= rotation_vector * factor
self.speed -= rotation_vector * factor * 0.1
end
def left amount = turning
self.rotation -= amount
Expand Down
4 changes: 2 additions & 2 deletions lib/units/admiral.rb
Expand Up @@ -7,8 +7,8 @@ class Admiral < Player
with Gun, 10, -140
with Gun, 140, 0

acceleration 0.0001
turning 0.00001
acceleration 0.001
turning 0.0001
lives 300

def initialize window
Expand Down

0 comments on commit 85f5087

Please sign in to comment.