gravity manager
This commit is contained in:
parent
cc7cb39faa
commit
02ffc29b01
@ -19,3 +19,4 @@ travelnet?
|
||||
telemosaic?
|
||||
missions?
|
||||
spacecannon?
|
||||
gravity_manager?
|
21
gravity_manager.lua
Normal file
21
gravity_manager.lua
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
-- space
|
||||
gravity_manager.register({
|
||||
miny = 1000,
|
||||
maxy = 5000,
|
||||
gravity = 0.8
|
||||
})
|
||||
|
||||
-- moon
|
||||
gravity_manager.register({
|
||||
miny = 5001,
|
||||
maxy = 6000,
|
||||
gravity = 0.1654
|
||||
})
|
||||
|
||||
-- deep space
|
||||
gravity_manager.register({
|
||||
miny = 6001,
|
||||
maxy = 10999,
|
||||
gravity = 0.1
|
||||
})
|
5
init.lua
5
init.lua
@ -44,6 +44,11 @@ if minetest.get_modpath("travelnet") then
|
||||
dofile(MP.."/travel/travelnet.lua")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("gravity_manager") then
|
||||
-- register gravity zones
|
||||
dofile(MP.."/gravity_manager.lua")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("skybox") then
|
||||
-- planetary skyboxes
|
||||
dofile(MP.."/skybox.lua")
|
||||
|
@ -4,7 +4,6 @@ skybox.register({
|
||||
name = "space",
|
||||
miny = 1000,
|
||||
maxy = 5000,
|
||||
gravity = 0.8,
|
||||
textures = {"space_sky.png","space_sky2.png","space_sky.png","space_sky.png","space_sky.png","space_sky.png"}
|
||||
})
|
||||
|
||||
@ -13,7 +12,6 @@ skybox.register({
|
||||
name = "moon",
|
||||
miny = 5001,
|
||||
maxy = 6000,
|
||||
gravity = 0.1654,
|
||||
always_day = true,
|
||||
textures = {"space_sky.png","space_sky.png","space_sky.png","space_sky.png","space_sky.png","space_sky.png"}
|
||||
})
|
||||
@ -25,7 +23,6 @@ skybox.register({
|
||||
name = "deepspace",
|
||||
miny = 6001,
|
||||
maxy = 10999,
|
||||
gravity = 0.1,
|
||||
always_day = true,
|
||||
fly = true,
|
||||
textures = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user