-- gui_scrip.lua -- Gui Test -- Init function called from K3dEngine during initialization -- Warning -- Don't delete this function -- Function must exist function Init() print ("___ gui_script.lua = Init() function called") K3d_LoadMap("./maps/test/gui_map.lua") end -- Update function called from K3dEngine during update scene -- Warning -- Don't delete this function -- Function must exist function Update() --print("___ Update gui_scrip.lua ") if K3d_CheckKeyboardKey("Esc") then -- Load new script and delete this script -- This function must be called as last function in this script -- else engine shut down in next funcion -- because next function doesn`t exist in new script K3d_LoadNewScript("./scripts/main_menu_script.lua") end end -- Delete function called from K3dEngine during delete scene -- Warning -- Don't delete this function -- Function must exist function Delete() print("___ main_menu_script.lua out = Delete() function called") end