aboutsummaryrefslogtreecommitdiff
path: root/src/Enemy.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/Enemy.elm
parentc2583cf7ff8684d1194c61ab132e23d7ccebcd51 (diff)
Adding multiple moving points to catch
Diffstat (limited to 'src/Enemy.elm')
-rw-r--r--src/Enemy.elm27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/Enemy.elm b/src/Enemy.elm
deleted file mode 100644
index 0f986aa..0000000
--- a/src/Enemy.elm
+++ /dev/null
@@ -1,27 +0,0 @@
-module Enemy where
-
-import Vec2 (..)
-import Board (boardDiagonal)
-
-type Enemy =
- { initTime : Float
- , initPos : Vec2
- , initDest : Vec2
- , move : Float -> Vec2 -> Vec2 -> Float -> Vec2
- }
-
-enemyMove : Enemy -> Float -> Vec2
-enemyMove enemy time =
- enemy.move enemy.initTime enemy.initPos enemy.initDest time
-
-enemySize : Float
-enemySize = 5
-
-enemySpeed : Float -> Float
-enemySpeed dt = dt / 25
-
-enemySpawnDist : Float
-enemySpawnDist = boardDiagonal * 3 / 5
-
-enemyAwayDist : Float
-enemyAwayDist = boardDiagonal