change scoring and sorting
This commit is contained in:
parent
5414c719f1
commit
155257514d
4 changed files with 16 additions and 6 deletions
5
game.js
5
game.js
|
@ -49,7 +49,8 @@ class Game extends GameBasic {
|
|||
|
||||
if (!hash) {
|
||||
hash = createHash('sha256');
|
||||
hash.update(client.ip || '');
|
||||
hash.update((+new Date) + '');
|
||||
//hash.update(client.ip || '');
|
||||
hash = hash.digest('hex');
|
||||
}
|
||||
|
||||
|
@ -108,7 +109,7 @@ class Game extends GameBasic {
|
|||
that.entities.push(new NPC(false, that))
|
||||
}
|
||||
|
||||
for (let i = 0; i < 30; i++) {
|
||||
for (let i = 0; i < 18; i++) {
|
||||
that.entities.push(new Shooter(false, that))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue