Commit graph

38 commits

Author SHA1 Message Date
Romain Beaumont
8c06acf155 improve logging : create logs dir if it doesn't exist, use log dir relative to path, add shebang in app.js to allow starting the app.js as a bin, make longjohn enable only if NODE_ENV == 'dev', make "craftyjs" a binary installed with package when npm install -g 2015-08-30 07:58:47 +02:00
Romain Beaumont
5a668e6815 implement digging correctly by using prismarine-block digTime function, fix #7 2015-08-29 04:25:34 +02:00
Romain Beaumont
874cce85bd place block with empty hand crash fixed 2015-08-28 23:17:20 +02:00
Romain Beaumont
31f7946437 fix logging 2015-08-28 23:15:49 +02:00
Romain Beaumont
e88ca19177 You can only hurt someone in survival, fix #23 2015-08-28 23:00:46 +02:00
Romain Beaumont
32b957cc60 Merge branch 'newlook' 2015-08-28 22:16:48 +02:00
Romain Beaumont
2c6e8c18a7 implement looking, thanks @Gjum and @mhsjlw 2015-08-28 22:15:24 +02:00
Romain Beaumont
470b00ea67 improve animations.js a bit 2015-08-28 21:22:28 +02:00
mhsjlw
fb0ab0ef95 Implement crouching and sprinting 2015-08-28 15:07:40 -04:00
mhsjlw
4f3b073e40 Added arm swinging animation 2015-08-28 11:41:13 -04:00
mhsjlw
b00110d19a Added player.updateHealth documentation 2015-08-28 11:19:53 -04:00
mhsjlw
afb4ecb1a9 Fixed player respawn health 2015-08-28 11:05:49 -04:00
Romain Beaumont
6e747b6fc0 add player.handleCommand to the api, improve command handling 2015-08-28 01:10:35 +02:00
Romain Beaumont
8dded86058 improve command handling and expose setGameMode 2015-08-28 00:53:19 +02:00
mhsjlw
0b78f258fa Add gamemode command 2015-08-27 18:33:22 -04:00
Romain Beaumont
17ab2c8b19 add animation when a player is dead, fix #17 2015-08-27 23:44:15 +02:00
Romain Beaumont
56e0e93a3f show animation when player is hurt, start #17 2015-08-27 23:36:58 +02:00
Romain Beaumont
caedd14632 add logout to its own file, expose sendInitialPosition and spawn, implement respawn, fix #16 2015-08-27 23:26:23 +02:00
mhsjlw
ec51d1e875 Implemented commands 2015-08-27 16:58:04 -04:00
Romain Beaumont
6509f513a8 load player plugin in login.js server plugin, fix #11 2015-08-27 22:39:45 +02:00
Romain Beaumont
52f6cdffbe fix diff check : see http://wiki.vg/Protocol#Entity_Look_And_Relative_Move 2015-08-27 22:25:23 +02:00
mhsjlw
0cea63bd02 Create the respawn plugin 2015-08-27 12:53:13 -04:00
mhsjlw
64630e8fb6 Updated the api 2015-08-27 12:52:29 -04:00
mhsjlw
d1cfcc7367 Added PVP 2015-08-27 12:26:53 -04:00
mhsjlw
b11fb30ad6 Add serv.entities 2015-08-27 09:25:51 -04:00
Romain Beaumont
6d13014d1c add player.changeBlock method, make digging work in creative mode, basic block_place functionality 2015-08-27 03:46:53 +02:00
Romain Beaumont
0b2967c5db gameMode handling and better spawn point : now choose randomly in an array of points 2015-08-27 03:01:26 +02:00
Romain Beaumont
757b049c15 basic digging implementation 2015-08-27 01:56:26 +02:00
Romain Beaumont
8010ae86bd fix leaving : splice not slice !! 2015-08-27 00:23:19 +02:00
Romain Beaumont
213fe7d84b implement leaving, fix #6 2015-08-26 23:50:03 +02:00
Romain Beaumont
bddc8d117d actually use teleport 2015-08-26 23:12:25 +02:00
Romain Beaumont
49e313d72b set the spawn point in spawn player plugin, send teleport packet if the position diff is too important, fix #5 2015-08-26 23:08:12 +02:00
Romain Beaumont
34ca0aa788 update position also on position_look, fix #2 2015-08-26 21:56:41 +02:00
Romain Beaumont
a00082b57a add username to the player object 2015-08-26 21:48:56 +02:00
Romain Beaumont
c3f0645771 emit events instead of directly logging, add longjohn, add chat plugins 2015-08-26 21:41:59 +02:00
Romain Beaumont
2e371e741f Continue refactoring : client now in a player object, methods added to that player object, progress on #3 2015-08-26 20:13:01 +02:00
Romain Beaumont
dde4387536 add api, make login a server plugin 2015-08-26 03:49:06 +02:00
Romain Beaumont
034cd43363 complete reorganization : client plugins, server plugins 2015-08-26 03:27:33 +02:00