diff options
Diffstat (limited to 'src/Point.elm')
-rw-r--r-- | src/Point.elm | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/Point.elm b/src/Point.elm deleted file mode 100644 index e66a5f7..0000000 --- a/src/Point.elm +++ /dev/null @@ -1,27 +0,0 @@ -module Point where - -import Vec2 (..) -import Board (boardDiagonal) - -type alias Point = - { initTime : Float - , initPos : Vec2 - , initDest : Vec2 - , move : Float -> Vec2 -> Vec2 -> Float -> Vec2 - } - -pointMove : Point -> Float -> Vec2 -pointMove {initTime, initPos, initDest, move} time = - move initTime initPos initDest time - -pointSize : Float -pointSize = 10 - -pointSpeed : Float -> Float -pointSpeed dt = dt / 20 - -pointSpawnDist : Float -pointSpawnDist = boardDiagonal * 3 / 5 - -pointAwayDist : Float -pointAwayDist = boardDiagonal * 3 / 4 |