gravity manager

This commit is contained in:
NatureFreshMilk 2019-07-29 11:45:16 +02:00
parent cc7cb39faa
commit 02ffc29b01
4 changed files with 27 additions and 3 deletions

View File

@ -19,3 +19,4 @@ travelnet?
telemosaic?
missions?
spacecannon?
gravity_manager?

21
gravity_manager.lua Normal file
View 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
})

View File

@ -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")

View File

@ -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 = {