diff options
author | Joris Guyonvarch | 2015-03-05 22:55:06 +0100 |
---|---|---|
committer | Joris Guyonvarch | 2015-03-05 22:55:11 +0100 |
commit | 716ce85464ee6d57a424a00d2535b3c2ce6ad9cb (patch) | |
tree | 01728db59af133a94855e536a25d6c5073bbfa38 /src/CloudStep.elm | |
parent | 2fe50fd2ebb1815a330b20e599f756fa393de81b (diff) |
Adding a wave move
Diffstat (limited to 'src/CloudStep.elm')
-rw-r--r-- | src/CloudStep.elm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CloudStep.elm b/src/CloudStep.elm index 033c3c5..e6bfc96 100644 --- a/src/CloudStep.elm +++ b/src/CloudStep.elm @@ -8,7 +8,7 @@ import Geometry (..) import Player (..) import Board (boardSize, boardDiagonal) import Point (..) -import Physics (getMove) +import Physics (getMove, getWaveMove) import Cloud (..) import Config (..) @@ -61,7 +61,7 @@ getNewPoint time seed = , initDest = initDest , move initTime initPos initDest time = let delta = time - initTime - move = getMove (pointSpeed delta) (initDest `sub` initPos) + move = getWaveMove (pointSpeed delta) (initDest `sub` initPos) 10 10 in initPos `add` move } , seed'' |