aboutsummaryrefslogtreecommitdiff
path: root/src/Cloud.elm
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-07 15:12:02 +0100
committerJoris Guyonvarch2015-03-07 15:12:02 +0100
commit17a58e0c4c67f27d87635bf1b2ca50fb11795ad3 (patch)
tree8de99cdf0b4021ca6db6920537e7d0fa250e90bc /src/Cloud.elm
parent336816d2e8ab4afff1562123dfde61bf3a68e61c (diff)
downloadcatchvoid-17a58e0c4c67f27d87635bf1b2ca50fb11795ad3.tar.gz
catchvoid-17a58e0c4c67f27d87635bf1b2ca50fb11795ad3.tar.bz2
catchvoid-17a58e0c4c67f27d87635bf1b2ca50fb11795ad3.zip
Organizing source code with subdirectories
Diffstat (limited to 'src/Cloud.elm')
-rw-r--r--src/Cloud.elm35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/Cloud.elm b/src/Cloud.elm
deleted file mode 100644
index 45a1dcb..0000000
--- a/src/Cloud.elm
+++ /dev/null
@@ -1,35 +0,0 @@
-module Cloud where
-
-import List
-
-import Point (..)
-import Player (..)
-import Config (..)
-import Geometry (distance)
-
-type alias Cloud =
- { points : Config -> List Point
- , spawn : Float
- , lastSpawn : Float
- }
-
-initCloud : Cloud
-initCloud =
- let spawn = 600
- in { points config =
- case config of
- White -> []
- Black -> []
- , spawn = spawn
- , lastSpawn = -spawn
- }
-
-playerPointsCollision : Float -> Player -> List Point -> Bool
-playerPointsCollision time player points =
- let collision = playerPointCollision time player
- in List.length (List.filter collision points) > 0
-
-playerPointCollision : Float -> Player -> Point -> Bool
-playerPointCollision time player point =
- let pointPos = pointMove point time
- in (distance pointPos player.pos) < pointSize + playerSize