Commit graph

6 commits

Author SHA1 Message Date
Romain Beaumont
2a3b8a157b add player.spawnAPlayer, player.despawnPlayers, player.updateAndSpawnNearbyPlayers, automatically spawn and despawn players when getting closer or far 2015-10-25 23:26:04 +01:00
Romain Beaumont
e3b7ad569b fix stuff related to changeWorld
* use writeOthersNearby everywhere
* create player.playerViewDistance
* put toFixedPosition in vec3 prototype
* fix changeWorld (use the same function than in login)
* use entity_destroy in changeWorld
* sendPosition, not setPosition
* disable pregenWorld : it just makes everything slow
2015-10-25 21:03:02 +01:00
DemiPixel
f0cce9fadb Added lots of communication stuff 2015-10-24 21:02:26 -07:00
DemiPixel
bb80bd7c44 Changed stuff, added seeds, etc 2015-10-24 19:41:21 -07:00
DemiPixel
1b739c3391 NOT FINAL VERSION, stuff still broken but some more fixes 2015-10-24 17:15:04 -07:00
DemiPixel
1917165caf Change serv.world to serv.worlds. Added playerPlugins/world.js and moved a lot of stuff from login.js there. Generating multiple worlds works and moving players there works as well. A few issues here and there. 2015-10-24 16:56:28 -07:00