GrandTabernacleAutoVI/js/game.js
Killian Marty f624e8355e edit
2023-11-20 11:05:19 +01:00

24 lines
No EOL
536 B
JavaScript

Renderer = new Render("canvas", "./assets/map/map7_recadr.png");
Inp = new Input("canvas");
let Net = new Network("ws://129.151.227.50:8080/");
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);