Compare commits

...

2 Commits

Author SHA1 Message Date
nemo e379ab2a4c more 2024-11-20 12:04:39 +01:00
nemo b5d2823b09 readme: fix start 2024-11-20 09:16:53 +01:00
5 changed files with 10 additions and 4 deletions

View File

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

2
app.c
View File

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

View File

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

BIN
museum/MonkeyGer.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

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