Renderer = new Render("canvas", "./assets/map/map7_recadr.png"); Inp = new Input("canvas"); let Net = new Network("ws://129.151.227.50:8080/", Renderer); //let ClientKeyboard = new Keyboard() let playerId; //id of client player let players = []; Net.connect(); //connect to server, create a player, and retrieve all players info //ClientKeyboard.init(); function game() { for (var i = players.length - 1; i >= 0; i--) { players[i].update([],[]); } //console.log(Inp.calculateAngle(500,500)) Renderer.ReloadAff(); } setInterval(game);