aboutsummaryrefslogtreecommitdiff
path: root/client/main.ha
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-05 00:57:56 +0100
committerubq323 <ubq323@ubq323.website>2024-04-05 00:57:56 +0100
commitdf26827a3f00d64f5af01271818c7c8bd7eaa387 (patch)
tree3e628dad40d74be0e331edb98454394d474ff412 /client/main.ha
parent1762e9f622c7a9045e6ea23a92a81d7dfa5dadda (diff)
start of networking, and packet_reader
Diffstat (limited to 'client/main.ha')
-rw-r--r--client/main.ha2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/main.ha b/client/main.ha
index ba1736e..a0c25d8 100644
--- a/client/main.ha
+++ b/client/main.ha
@@ -1,6 +1,7 @@
use fmt;
use sdl2;
use math;
+use net::dial;
def CHUNKSIZE = 512;
def NCHUNKS = 4;
@@ -29,6 +30,7 @@ export fn main() void = {
drawing = false,
pos = (0,0),
pictures = pictures,
+ conn = dial::dial("tcp","localhost:41460","unknown")!,
};
let camera_pos: pos = (25, 50);