main.lua: fix seed
This commit is contained in:
parent
412ac4cb2e
commit
0cf62aadd7
1 changed files with 4 additions and 3 deletions
7
main.lua
7
main.lua
|
@ -12,6 +12,7 @@ local settings = {
|
|||
height = 11,
|
||||
depth = 7,
|
||||
|
||||
seed = os.time(),
|
||||
filename = "maze.scad",
|
||||
|
||||
scale = 5,
|
||||
|
@ -75,7 +76,7 @@ end
|
|||
|
||||
local function maze_text()
|
||||
local world, time = maze2d.generate_maze(
|
||||
os.time(),
|
||||
settings.seed,
|
||||
settings.width,
|
||||
settings.height
|
||||
)
|
||||
|
@ -85,7 +86,7 @@ end
|
|||
|
||||
local function maze3d_text()
|
||||
local world, time = maze3d.generate_maze(
|
||||
os.time(),
|
||||
settings.seed,
|
||||
settings.width,
|
||||
settings.height,
|
||||
settings.depth
|
||||
|
@ -98,7 +99,7 @@ end
|
|||
|
||||
local function maze3d_openscad()
|
||||
local world, time = maze3d.generate_maze(
|
||||
os.time(),
|
||||
setting.seed,
|
||||
settings.width,
|
||||
settings.height,
|
||||
settings.depth
|
||||
|
|
Loading…
Reference in a new issue