GrandTabernacleAutoVI/js/game.js
2023-11-29 15:54:09 +01:00

24 lines
No EOL
550 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/", 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);