aboutsummaryrefslogtreecommitdiff
path: root/src/Target.elm
diff options
context:
space:
mode:
authorJoris Guyonvarch2014-10-05 23:10:18 +0200
committerJoris Guyonvarch2014-10-05 23:10:32 +0200
commit4521cdf1bb5725c9d497e5fb0c03943ad03a052f (patch)
tree8b7247e9b1b2c950c7bec39548bfe860965c5126 /src/Target.elm
parentc2583cf7ff8684d1194c61ab132e23d7ccebcd51 (diff)
downloadcatchvoid-4521cdf1bb5725c9d497e5fb0c03943ad03a052f.tar.gz
catchvoid-4521cdf1bb5725c9d497e5fb0c03943ad03a052f.tar.bz2
catchvoid-4521cdf1bb5725c9d497e5fb0c03943ad03a052f.zip
Adding multiple moving points to catch
Diffstat (limited to 'src/Target.elm')
-rw-r--r--src/Target.elm24
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 }
- }