I don't know what this code is sorry

This commit is contained in:
2023-09-05 19:57:20 -07:00
parent 33e9038343
commit 93a62d718f

View File

@ -298,7 +298,7 @@ function move_camera() {
} }
function open_socket() { function open_socket() {
server = new WebSocket("ws://NUC-server-1:8080"); server = new WebSocket(server_url);
server.onopen = function() { server.onopen = function() {
server.send(JSON.stringify({ server.send(JSON.stringify({
"type": "init", "type": "init",
@ -334,7 +334,7 @@ function send_position_to_server() {
var interact_interval; var interact_interval;
var punching = false; var punching = false;
var mouse_down = false; var mouse_down = false;
document.body.onmousedown = function() { document.body.onmousedown = function() {
mouse_down = true; mouse_down = true;
} }
document.body.onmouseup = function() { document.body.onmouseup = function() {
@ -365,4 +365,4 @@ function interaction_animation(start_time) {
rotation_offset = 0; rotation_offset = 0;
punching = false; punching = false;
} }
} }