Improve world creation

This commit is contained in:
schmelczerandras 2020-10-22 21:48:13 +02:00
parent dee72440bb
commit dd21c20b3a
5 changed files with 57 additions and 65 deletions

View file

@ -26,7 +26,7 @@ export class GameServer {
this.serverName = options.name;
this.playerLimit = options.playerLimit;
createWorld(this.objects);
createWorld(this.objects, options.worldSize);
this.objects.initialize();
io.on('connection', (socket: SocketIO.Socket) => {