Commit Graph

44 Commits

Author SHA1 Message Date
Pig Fang 524f84b0af Fix TS errors 2018-08-01 21:51:52 +08:00
Pig Fang 12e1a890ed Enable strict mode 2018-08-01 18:01:58 +08:00
Pig Fang 234be5df90 Update type of "AnimationFn" 2018-08-01 17:47:09 +08:00
Hacksore 179bcd7577 Remove comment as modelListeners this to finish initialization
Based on yushijinhun's feedback from comment 3feb9cf9f6 (r29788700)
2018-07-21 09:38:02 -05:00
Sean Boult 16d0e8f8ea Fix many linting issues 2018-07-21 07:52:02 -05:00
Sean Boult 3feb9cf9f6 No longer need to check _slim
It's a property with false as the default value within the  SkinObject class
2018-07-20 22:41:12 -05:00
Sean Boult b2932c96bb Working transpiling via "npm run buildtest" command
There is an issue witht the slim detection causing standard arms to load incorrectly, likely something caused by moving object properties around
2018-07-20 22:07:52 -05:00
Sean Boult e6be73fc9d Add back in the main entry point content 2018-07-17 13:58:27 -05:00
Sean Boult a48f935f06 First pass at conversion to Typescript 2018-07-17 13:49:00 -05:00
yushijinhun e1651a2f89
Fix #15 2018-07-05 23:08:05 +08:00
yushijinhun b0230472d5
Export isSlimSkin function 2018-07-05 13:35:53 +08:00
yushijinhun a4bd8bc706
Move skin/cape loading to utils.js 2018-07-05 10:56:21 +08:00
yushijinhun 867660f2ee
Move some functions to utils.js 2018-07-05 10:32:17 +08:00
yushijinhun 25805bfa59
Add detectModel option to allow turning auto-detection off 2018-07-02 20:26:20 +08:00
yushijinhun 670647109a
Polish 2018-07-02 20:26:09 +08:00
yushijinhun 998cef9657
Use detected model 2018-07-02 20:25:48 +08:00
yushijinhun df3be7ab51
Allow model to be changed on the fly 2018-07-02 15:46:48 +08:00
yushijinhun 0a8dafff4e
Rename addVertices -> setVertices 2018-07-02 14:54:49 +08:00
yushijinhun e6a8a37aa1
Use NearestFilter instead of NearestMipMapNearestFilter
It is unnecessary to use NearestMipMapNearestFilter
2018-04-21 19:10:36 +08:00
yushijinhun 4901121496
Set alphaTest to 0.5, close #18 2018-04-15 11:36:34 +08:00
yushijinhun 367a2e1023
Try supporting transparent capes 2018-04-15 10:58:44 +08:00
Andrey 651c6b0592
Support for transparent capes
Minecraft supports this.
2018-04-14 17:46:10 +02:00
yushijinhun d7e7ae3d99
change crossOrigin to anonymous, close #17 2018-03-03 22:04:10 +08:00
621sama 0db8457441
Merge pull request #1 from yushijinhun/pr-12-mod
Remove MouseControl and use OrbitControls instead
2018-02-12 13:36:32 +08:00
printempw a0730f8da8 remove naturalSpeed property of animation function 2018-02-12 12:31:56 +08:00
printempw 8f9127777e fix type definition of animation functions 2018-02-12 10:16:26 +08:00
yushijinhun 58a9df63bf
remove MouseControl 2018-02-12 09:46:07 +08:00
printempw d9fa502cab expose properties instead of methods on `MouseControl` 2018-02-11 23:38:10 +08:00
printempw d27b9e6493 refactor animations
- update walking animation
- add running, rotating animation
- add natural speed for animations
2018-02-11 22:42:37 +08:00
printempw 8797cb6664 expose some methods for mouse control 2018-02-11 22:33:59 +08:00
printempw 180af1563b adjust camera fov to avoid perspective distortion 2018-02-11 19:38:49 +08:00
printempw 2725925fe4 update `MouseControl` and remove event listener 2018-02-11 18:44:55 +08:00
yushijinhun 79167ab0f8
use multi .eslintrc.js files 2018-02-11 16:17:43 +08:00
yushijinhun ef9664476f
Change license to MIT 2018-02-10 14:05:07 +08:00
yushijinhun 741dc9e3ef
export invokeAnimation() 2018-02-09 12:52:33 +08:00
yushijinhun d86cfa4c87
move property `slim` from `PlayerObject` to `SkinObject` 2018-02-09 12:52:11 +08:00
yushijinhun 99fc6ee5bc
support 22x17 capes, closing #4 2018-02-09 10:47:08 +08:00
yushijinhun cc8ada005d
remove SkinViewer.animationSpeed
changing SkinViewer.animationSpeed will cause the animation to be
discontinuous, use AnimationHandle.speed instead
2018-02-02 18:27:09 +08:00
Pig Fang a654cd20e1 fix import three.js 2018-01-14 20:46:20 +08:00
yushijinhun 846c0b9939
add CompositeAnimation 2018-01-06 22:01:12 +08:00
yushijinhun c3c5863263
refactor build 2018-01-06 19:31:34 +08:00
yushijinhun 9f30b25d3e
Switch from jshint to eslint 2018-01-06 18:47:07 +08:00
yushijinhun 5f621c06a3
Add minified js & Use jshint 2017-10-02 21:29:41 +08:00
yushijinhun 28893c847e
use npm 2017-10-01 20:02:29 +08:00