Changeset 5341 for data/media/levels/CuboidSpaceStation.lua
- Timestamp:
- Dec 10, 2008, 4:49:31 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/media/levels/CuboidSpaceStation.lua
r5333 r5341 13 13 14 14 -- This function creates a randomly generated space station. 15 -- The first argument ranSeed, must be false, or a positive Integer, if it is falseyour space station is always chosen randomly, if you give an integer,15 -- The first argument ranSeed, must be 0, or a positive Integer, if it is 0 your space station is always chosen randomly, if you give an integer, 16 16 -- your space station will be generated randomly, but once you have the space station it will always be the same. 17 17 -- The argument xLength defines how large the space station will be into the x-direction. … … 36 36 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 37 37 -- Create a randomseed, so that the math.random() function is actually random. 38 if ranSeed == falsethen38 if ranSeed == 0 then 39 39 math.randomseed(os.time()) 40 math.random() 40 41 else 41 42 math.randomseed(ranSeed) 43 math.random() 42 44 end 43 45 -- End create randomseed. … … 667 669 -- This function is for the lazy guys, which do not care how the space station looks like, so I use some good standard values. 668 670 function createSpaceStation() 669 createSpaceStationPar( false,4,1,2,1,6,1,100)671 createSpaceStationPar(0,4,1,2,1,6,1,100) 670 672 end 671 673 -- End createSpaceStaion() function.
Note: See TracChangeset
for help on using the changeset viewer.