GrandTabernacleAutoVI/js/game.js
Killian Marty 399822d312 server
2023-11-19 18:55:21 +01:00

21 lines
No EOL
473 B
JavaScript

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