summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2018-04-13 18:31:35 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2018-04-13 18:31:35 +0200 |
commit | 4029aa799a5a3fcb392422f44ef2d08357fb128a (patch) | |
tree | c412efacf2ab642122a76f702c32f61496cdd146 | |
parent | af93e3b745d3f67b448f5e3f629e581eda15cd11 (diff) |
Improves "noise" function.
-rw-r--r-- | src/battlemap/src/View/Battlemap/Tile.elm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/battlemap/src/View/Battlemap/Tile.elm b/src/battlemap/src/View/Battlemap/Tile.elm index fb91731..2b526b2 100644 --- a/src/battlemap/src/View/Battlemap/Tile.elm +++ b/src/battlemap/src/View/Battlemap/Tile.elm @@ -18,7 +18,9 @@ import Struct.Tile -------------------------------------------------------------------------------- noise_function : Int -> Int -> Int -> Int noise_function a b c = - (round (pi * (radians (toFloat a)) * (radians (toFloat b)) * (toFloat c))) + (round + (radians (toFloat ((a + 1) * 2 + (b + 1) * 3 + c))) + ) -------------------------------------------------------------------------------- -- EXPORTED -------------------------------------------------------------------- |