Debian Codegraph @

spawn/default.gravitspawn

raw
1 -- vim:syntax=lua tabstop=4
2
3 load("constants.lua")
4
5
6 scripts = { "plummer", "one-galaxy", "binary-galaxy", "merging-galaxies", "many-galaxy", "snake", "loops", "dust", "clouds", "negative-collision", "negative-sphere", "negative-spiral", "negative-surround", "surround" }
7
8 math.randomseed(os.time())
9 r = math.random(1, #scripts)
10 logName(scripts[r])
11
12 file = scripts[r] .. ".gravitspawn"
13 -- log(file)
14
15 spawn = nil
16 load(file)
17