Commits

jice committed d942cd8 Merge

Merged in tdamgaard/libtcod (pull request #20)

update call from noise_simplex to noise_get in python FOV sample

  • Participants
  • Parent commits c25d466, 8f58c5e

Comments (0)

Files changed (1)

python/samples_py.py

         fov_torchx += 0.2
         # randomize the light position between -1.5 and 1.5
         tdx = [fov_torchx + 20.0]
-        dx = libtcod.noise_simplex(noise,tdx) * 1.5
+        dx = libtcod.noise_get(noise, tdx, libtcod.NOISE_SIMPLEX) * 1.5
         tdx[0] += 30.0
-        dy = libtcod.noise_simplex(noise,tdx) * 1.5
-        di = 0.2 * libtcod.noise_simplex(noise, [fov_torchx])
+        dy = libtcod.noise_get(noise, tdx, libtcod.NOISE_SIMPLEX) * 1.5
+        di = 0.2 * libtcod.noise_get(noise, [fov_torchx], libtcod.NOISE_SIMPLEX)
     for y in range(SAMPLE_SCREEN_HEIGHT):
         for x in range(SAMPLE_SCREEN_WIDTH):
             visible = libtcod.map_is_in_fov(fov_map, x, y)