ThreeJS Multiplayer
By Dormouse

Creating a social multi-player platform using ThreeJS and FireBase

Play Now








Other devlogs on this game:

ewwie gui
Devlog by Dormouse on November 13, 2017.

Instance management
Devlog by Dormouse on November 12, 2017.

Definition of insanity...
By Dormouse on November 12, 2017, 4:56 am.

So during my first build of this project, I ran into a little problem.

My character would begin moving towards the target, but then would start bouncing around like crazy and couldn't resolve to where I wanted it to go. Why? JavaScript apparently hates decimals.


My animation loop was incrementing the player position by .2 every cycle, and now matter how I attempted to floor/format the number, JavaScript was seeing .2000000000001 resulting in my player never quite being able to land on the target. The fix ended up being simple.. scaling the project x 50 and using Tween.js for the animations. I'm going to have to figure this out all over again when I try to implement path-finding... but I digress.

No comments yet.