diff options
author | Joris Guyonvarch | 2014-10-05 23:10:18 +0200 |
---|---|---|
committer | Joris Guyonvarch | 2014-10-05 23:10:32 +0200 |
commit | 4521cdf1bb5725c9d497e5fb0c03943ad03a052f (patch) | |
tree | 8b7247e9b1b2c950c7bec39548bfe860965c5126 /src/Target.elm | |
parent | c2583cf7ff8684d1194c61ab132e23d7ccebcd51 (diff) |
Adding multiple moving points to catch
Diffstat (limited to 'src/Target.elm')
-rw-r--r-- | src/Target.elm | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/Target.elm b/src/Target.elm deleted file mode 100644 index 92ab4c2..0000000 --- a/src/Target.elm +++ /dev/null @@ -1,24 +0,0 @@ -module Target where - -import Board (boardSize) -import Geometry (distance) -import Vec2 (Vec2) -import Player (..) - -type Target = - { score : Int - , pos : Vec2 - } - -targetSize : Float -targetSize = 20 - -targetCollision : Player -> Target -> Bool -targetCollision player target = - (distance player.pos target.pos) < playerSize + targetSize - -initTarget : Target -initTarget = - { score = 0 - , pos = { x = 50, y = 0 } - } |