2021-01-19 21:46:28 -05:00
|
|
|
wormball = {}
|
2021-01-21 20:08:40 -05:00
|
|
|
--lookup tables
|
|
|
|
wormball.colors = {yellow = "fcba0388",
|
|
|
|
orangered = "fc280388",
|
|
|
|
darkred = "a1000088",
|
|
|
|
lightgreen = "80ff0088",
|
|
|
|
aqua = "00ff8488",
|
|
|
|
lightblue = "0084ff88",
|
|
|
|
darkblue = "0d00ff88",
|
|
|
|
purple = "8000ff88",
|
|
|
|
lightpurple = "ee00ff88",
|
|
|
|
pink = "ff006f88"}
|
|
|
|
|
|
|
|
|
2021-01-19 21:46:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
arena_lib.register_minigame("wormball", {
|
|
|
|
prefix = "[Wormball] ",
|
|
|
|
--hub_spawn_point = { x = 0, y = 20, z = 0 },
|
|
|
|
show_minimap = false,
|
2021-01-26 17:51:09 -05:00
|
|
|
time_mode = 'decremental',
|
2021-01-19 21:46:28 -05:00
|
|
|
load_time = 5,
|
|
|
|
min_players = 1,
|
|
|
|
max_players = 10,
|
|
|
|
join_while_in_progress = false,
|
|
|
|
keep_inventory = false,
|
|
|
|
in_game_physics = {
|
2021-01-21 20:08:40 -05:00
|
|
|
speed = 2,
|
|
|
|
jump = 3,
|
2021-01-19 21:46:28 -05:00
|
|
|
sneak = false,
|
2021-01-21 20:08:40 -05:00
|
|
|
gravity = 1,
|
2021-01-19 21:46:28 -05:00
|
|
|
},
|
|
|
|
show_nametags = true,
|
|
|
|
hotbar = {
|
|
|
|
slots = 0,
|
|
|
|
|
|
|
|
},
|
2021-01-26 17:51:09 -05:00
|
|
|
celebration_time =10,
|
2021-01-19 21:46:28 -05:00
|
|
|
disabled_damage_types = {"punch","fall"},
|
|
|
|
properties = {
|
|
|
|
area_to_clear_after_game_pos_1 = {x = 0, y = 0, z = 0},
|
|
|
|
area_to_clear_after_game_pos_2 = {x = 0, y = 0, z = 0},
|
2021-01-26 19:11:19 -05:00
|
|
|
min_food_factor = 2,
|
|
|
|
min_food = 20,
|
2021-01-26 18:09:23 -05:00
|
|
|
highscores = {
|
|
|
|
{'pl_name_placeholder',0},
|
|
|
|
{'pl_name_placeholder',0},
|
|
|
|
{'pl_name_placeholder',0},
|
|
|
|
{'pl_name_placeholder',0},
|
|
|
|
{'pl_name_placeholder',0},
|
|
|
|
{'pl_name_placeholder',0},
|
|
|
|
{'pl_name_placeholder',0},
|
|
|
|
{'pl_name_placeholder',0},
|
|
|
|
{'pl_name_placeholder',0},
|
|
|
|
{'pl_name_placeholder',0},
|
2021-01-26 17:51:09 -05:00
|
|
|
|
2021-01-26 18:09:23 -05:00
|
|
|
},
|
2021-01-19 21:46:28 -05:00
|
|
|
},
|
2021-01-21 20:08:40 -05:00
|
|
|
temp_properties = {
|
|
|
|
mode = 'singleplayer',
|
2021-01-26 15:58:50 -05:00
|
|
|
dots = {},
|
2021-01-26 17:51:09 -05:00
|
|
|
num_players = 0,
|
2021-01-21 20:08:40 -05:00
|
|
|
},
|
2021-01-26 17:51:09 -05:00
|
|
|
initial_time = 300,
|
2021-01-21 20:08:40 -05:00
|
|
|
|
2021-01-19 21:46:28 -05:00
|
|
|
player_properties = {
|
|
|
|
alive = true,
|
|
|
|
direction = {x=0,y=1,z=0},
|
2021-01-21 20:08:40 -05:00
|
|
|
old_direction = {x=0,y=1,z=0},
|
2021-01-19 21:46:28 -05:00
|
|
|
nodes = {},
|
|
|
|
score = 1,
|
|
|
|
color = "",
|
|
|
|
apple = false,
|
2021-01-21 20:08:40 -05:00
|
|
|
--textures= {},
|
2021-01-26 15:58:50 -05:00
|
|
|
move = true,
|
2021-01-19 21:46:28 -05:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
if not minetest.get_modpath("lib_chatcmdbuilder") then
|
|
|
|
dofile(minetest.get_modpath("wormball") .. "/chatcmdbuilder.lua")
|
|
|
|
end
|
|
|
|
|
|
|
|
dofile(minetest.get_modpath("wormball") .. "/commands.lua")
|
|
|
|
dofile(minetest.get_modpath("wormball") .. "/minigame_manager.lua")
|
|
|
|
dofile(minetest.get_modpath("wormball") .. "/nodes.lua")
|
|
|
|
dofile(minetest.get_modpath("wormball") .. "/privs.lua")
|
|
|
|
|