Compare commits

..

No commits in common. "e379ab2a4c1f7b75f42ae8bdc181f2bfa6da0aae" and "1505f71328f5482f514c25d7c42895c3caaf3242" have entirely different histories.

5 changed files with 4 additions and 10 deletions

View File

@ -12,13 +12,7 @@ npm i
# Play # Play
```console ```console
npm run start npm start
```
or
```console
node server.js
``` ```
or or

2
app.c
View File

@ -43,7 +43,7 @@ typedef struct Player {
int rid, id, x, y, dir; int rid, id, x, y, dir;
} Player; } Player;
#define MAX_PLAYERS 50 #define MAX_PLAYERS 20
Player players[MAX_PLAYERS] = {0}; Player players[MAX_PLAYERS] = {0};
int nb_players = 0; int nb_players = 0;

View File

@ -85,7 +85,7 @@ connection.onclose = (e) => {
document.getElementById('players').innerHTML = "Not connected"; document.getElementById('players').innerHTML = "Not connected";
}; };
var update_time_ms = 16; var update_time_ms = 100;
function send_pos() function send_pos()
{ {
if (is_connected) { if (is_connected) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -18,7 +18,7 @@ function update_player_list()
}); });
} }
var update_time_ms = 16; var update_time_ms = 100;
function update_player_pos() function update_player_pos()
{ {
var list = []; var list = [];