diff options
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 } - } |