yomotsu / meshwalk

for your TPS game development with three.js.
249 stars 45 forks source link

Convert to ES5? #9

Open Thundros opened 5 years ago

Thundros commented 5 years ago

Hello, @yomotsu ! I just would like to ask if you could convert this library to ES5 as opposed to ES6 so that I may study the code if possible since it is MIT licensed. I would very much like to use this as part of my demo but at the same time, I only need to utilize the library functions in my demo. There are some defaults in the library that I cannot use such as using my own Keys library for moving the character & such.

Thank you so much for all that you do & please continue doing it!

Have a great day! <3

Thundros

Thundros commented 5 years ago

Hello?

Thundros commented 5 years ago

hello?...

yomotsu commented 5 years ago

Sorry for the delay. Actually, ES5 version is already available. following one is published automatically using rollup.js. https://github.com/yomotsu/meshwalk.js/blob/master/dist/meshwalk.js

Thundros commented 5 years ago

Hi, yomotsu! :) No worries! I was wondering. Is there a way to remove stuff like this?

(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.MW = {}))); }(this, (function (exports) { 'use strict';

yomotsu commented 5 years ago

Do you really need to remove that? It just works as ES5.

Thundros commented 5 years ago

@yomotsu Yes, I do need to remove it so I can study just the classes & not the mangled mess.

Thundros commented 5 years ago

Hello @yomotsu ?

Thundros commented 5 years ago

hello?

Thundros commented 5 years ago

?