diff options
| author | group1 <f16_group1@pbridge.adm.cs.cmu.edu> | 2016-10-16 23:32:33 -0400 |
|---|---|---|
| committer | group1 <f16_group1@pbridge.adm.cs.cmu.edu> | 2016-10-16 23:32:33 -0400 |
| commit | c359530c2599d462c17e020d8337d91c478fd845 (patch) | |
| tree | 59b66e3d288d6b78e88c135b2c71eb753839156a | |
| parent | 2602b777fbe9b7a4448b1c4cec9ac4a4fd7002c1 (diff) | |
| download | bridge-c359530c2599d462c17e020d8337d91c478fd845.tar.zst | |
Dolphin attempt 2, it almost looks good
| -rw-r--r-- | fish_types.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fish_types.py b/fish_types.py index 6d24675..1f50104 100644 --- a/fish_types.py +++ b/fish_types.py @@ -117,7 +117,7 @@ class Dolphin(Fish): width = 35 height = 1.5 tailThreshold = 0.7 - tailDuration = 2 + tailDuration = 4 tailAccelMag = 0.4 gravity = C.Vector(0, -0.01) @@ -128,11 +128,11 @@ class Dolphin(Fish): return False if not self.direction_fixed: - self.tailAcceleration = self.tailAcceleration.rot2d(math.pi / 32) + self.tailAcceleration = self.tailAcceleration.rot2d(math.pi / 30) self.direction_fixed = True self.speed += self.drag * self.speed + self.gravity - if self.y <= 0.25: + if self.y <= 0.4: self.tailMoving = True if self.tailMoveCount > self.tailDuration: self.tailMoveCount = 0 |
