This commit is contained in:
jordan4ibanez 2023-11-05 20:29:49 -05:00
parent 05eff3a7e6
commit dcec37b225
2 changed files with 24 additions and 2 deletions

View File

@ -1,4 +1,15 @@
minetest.register_globalstep(function(delta)
local random = PcgRandom(delta * 1000000)
print(random:next(0, 150))
local perlin = PerlinNoise({
offset = 1,
scale = 1,
spread = { x = 1000, y = 1000, z = 1000 },
octaves = 10,
persistence = 3,
lacunarity = 2,
})
local noisey = perlin:get_2d({ x = random:next(0, 100), y = random:next(0, 100) })
print(noisey)
end)

View File

@ -1,4 +1,15 @@
minetest.register_globalstep(function(delta: number)
local random: PcgRandomObject = PcgRandom(delta * 1000000)
print(random:next(0, 150))
-- print(random:next(0, 150))
local perlin: PerlinNoiseObject = PerlinNoise({
offset = 1,
scale = 1,
spread = {x = 1000, y = 1000, z = 1000},
octaves = 10,
persistence = 3,
lacunarity = 2
})
local noisey = perlin:get_2d({x = random:next(0, 100), y = random:next(0, 100)})
print(noisey)
end)