Commit graph

16 commits

Author SHA1 Message Date
Romain Beaumont
39dc37f94d put together player plugins and server plugins 2015-11-16 20:23:09 +01:00
Romain Beaumont
78149b646e fix changing world 2015-11-16 19:50:33 +01:00
DemiPixel
f0c17d38b4 Almost done with entities, needs some more finishing touches 2015-11-10 21:12:53 -08:00
DemiPixel
9c61b7b009 Trying to work on sending entities, fair amount of broken stuff 2015-11-09 13:25:42 -08:00
Romain Beaumont
12620716e7 only wait between each chunk after the initial map was sent 2015-11-06 22:11:52 +01:00
Romain Beaumont
6b86cf5e9a send rest of the map only when the player has logged, fix #88 2015-11-06 20:36:41 +01:00
Romain Beaumont
888fa21b7b some more es6 arrows 2015-10-26 02:40:23 +01:00
Romain Beaumont
1a58da904c more es6 refactoring : use destructing and more arrow functions 2015-10-26 01:53:07 +01:00
Romain Beaumont
a50642967b use more es6 arrow function, and directly define the player.f functions instead of defining the function then assigning it 2015-10-26 01:15:21 +01:00
Romain Beaumont
69819b880e proper /changeworld overworld|nether command implemented 2015-10-25 23:58:30 +01:00
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