summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-04-13 18:31:35 +0200
committernsensfel <SpamShield0@noot-noot.org>2018-04-13 18:31:35 +0200
commit4029aa799a5a3fcb392422f44ef2d08357fb128a (patch)
treec412efacf2ab642122a76f702c32f61496cdd146
parentaf93e3b745d3f67b448f5e3f629e581eda15cd11 (diff)
Improves "noise" function.
-rw-r--r--src/battlemap/src/View/Battlemap/Tile.elm4
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 --------------------------------------------------------------------