Improve world creation
This commit is contained in:
parent
dee72440bb
commit
dd21c20b3a
5 changed files with 57 additions and 65 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue