37 lines
792 B
Lua
37 lines
792 B
Lua
require("oct_utils")
|
|
require("termbox_defs")
|
|
require("lobby")
|
|
require("ui")
|
|
|
|
my_port = ""
|
|
my_name = ""
|
|
|
|
-- lobby_ip_textbox = create_textbox("lobby_ip_textbox", 50, 20, 15, "IP: ")
|
|
-- lobby_port_textbox = create_textbox("lobby_port_textbox", 50, 22, 15, "Port: ")
|
|
-- lobby_name_textbox = create_textbox("lobby_name_textbox", 50, 24, 15, "Name: ")
|
|
|
|
function oct_init(arg, port)
|
|
OCT_LOG_INFO("Starting test_lobby_client")
|
|
|
|
-- my_port = port
|
|
-- if (arg == "") then
|
|
-- my_name = "TEST_USER"
|
|
-- else
|
|
-- my_name = arg
|
|
-- end
|
|
|
|
my_port = port
|
|
|
|
return OCT_NEEDS_NETWORKING, OCT_NEEDS_TERMBOX;
|
|
|
|
end
|
|
|
|
first = 1
|
|
|
|
function oct_loop(key, ch)
|
|
--handle_textbox(key, ch)
|
|
--lobby_client("127.0.0.1", "2048", my_name, my_port)
|
|
lobby_client(key, ch, my_port)
|
|
end
|
|
|