-- local value settings
local player_speed = 2 -- when in the minigame
local player_jump = 2 -- when in the minigame

quikbild = {} --global table
quikbild.version = "05.15.2022.2"
quikbild.storage = minetest.get_mod_storage()
  arena_lib.register_minigame("quikbild", {
      prefix = "[QuikBild] ",
      show_minimap = false,
      show_nametags = true,
      time_mode = "incremental",
      join_while_in_progress = true,
      keep_inventory = false,
      in_game_physics = {
        speed = player_speed,
        jump = player_jump,
        sneak = false,
      },
      properties = {
        build_area_pos_1 = {x = 0, y = 0, z = 0},
        build_area_pos_2 = {x = 0, y = 0, z = 0},
        --word_list = {'dog','cat','house','wheel','bird','road','farm','bell','apple','pencil'},
        word_list = {"picture","gel","warm","paint","bath","drill","chalk","duck","remote","word","spring","stone","rug","thermometer","stockings","CD","flower","car","check","vase","hanger","cookie","speaker","screw","paper","box","glasses","sailboat","pick","helmet","puddle","ring","pot","thread","bow","flag","fork","tape","lamp","tissue","balloon","lace","needle","chandelier","button","note","candy","tooth paste","sharpie","twister","photo","pencil","bookmark","spoon","outlet","quilt","seat belt","mouse pad","swing","nail","cork","stop sign","rust","gage","rubber band","zipper","canvas","sponge","soda","key","eraser","bottle","candle","lip","buckel","shovel","slipper","stick","cable","ice","credit card","clipper","glasses","tweezers","tie","charger","card","horse","door","song","trip","backbone","bomb","round","treasure","garbage","park","whistle","palace","baseball","coal","queen","dominoes","photo","graph","computer","hockey","plane","pepper","key","ipad","whisk","cake","circus","battery","mailman","cowboy","password","bicycle","skate","electric","lightsaber","nature","shallow","toast","outside","america","gingerbread","man","bowtie","light","bulb","platypus","music","sailboat","popsicle","knee","pineapple","tusk","sprinkler","money","spool","lighthouse","doormat","face","flute","owl","gate","suitcase","bathroom","scale","peach","newspaper","watering","can","hook","school","beaver","camera","hair","dryer","mushroom","quilt","chalk","dollar","soda","chin","swing","garden","ticket","boot","cello","rain","clam","pelican","stingray","nail","sheep","stoplight","coconut","crib","hippopotamus","ring","video","camera","snow","cheese","bone","socks","leaf","whale","pie","shirt","orange","lollipop","bed","mouth","person","horse","snake","jar","spoon","lamp","kite","monkey","swing","cloud","snowman","baby","eyes","pen","giraffe","grapes","book","ocean","star","cupcake","cow","lips","worm","sun","basketball","hat","bus","chair","purse","head","spider","shoe","ghost","coat","chicken","heart","jellyfish","tree","seashell","duck","bracelet","grass","jacket","slide","doll","spider","clock","cup","bridge","apple","balloon","drum","ears","egg","bread","nose","house","beach","airplane","inchworm","hippo","light","turtle","ball","carrot","cherry","ice","pencil","circle","bed","ant","girl","glasses","flower","mouse","banana","alligator","bell","robot","smile","bike","rocket","dino","dog","bunny","cookie","bowl","apple","door",},
        build_time = 120, --sec allowed to build
        artist_spawn_pos = {x = 0, y = 0, z = 0},
      },
      load_time = 4,
      celebration_time = 5,
      hotbar = {
        slots = #dye.dyes,
        background_image = "sumo_gui_hotbar.png",
      },
      temp_properties = {
        state = 'choose_artist', --game states: 'choose_artist', 'build_think','build','game_over'
        state_time = 0,
        artist = nil,
        word = '',
        answer_list = {},
        win_guesser = '',
        stall = false,
      },
      spectate_mode = false,
      disabled_damage_types = {"punch","fall","node_damage","set_hp","drown"},

      player_properties = {
        role = "",
        has_built = false,
        score = 0,
      },
  })


if not minetest.get_modpath("lib_chatcmdbuilder") then
  dofile(minetest.get_modpath("quikbild") .. "/chatcmdbuilder.lua")
end

dofile(minetest.get_modpath("quikbild") .. "/commands.lua")
dofile(minetest.get_modpath("quikbild") .. "/nodes.lua")
dofile(minetest.get_modpath("quikbild") .. "/minigame_manager.lua")
dofile(minetest.get_modpath("quikbild") .. "/privs.lua")
