tmedwards / sugarcube-2

SugarCube is a free (gratis and libre) story format for Twine/Twee.
https://www.motoslave.net/sugarcube/2/
BSD 2-Clause "Simplified" License
177 stars 41 forks source link

Document Math.easeInOut? #267

Closed BawdyInkSlinger closed 1 year ago

BawdyInkSlinger commented 1 year ago

Sugarcube source code defines Math.easeInOut but it's undocumented. Is this intentional?

greyelf commented 1 year ago

@BawdyInkSlinger

  • Sugarcube source code does not define Math.trunc anywhere.
  • Math.trunc is already built in to JavaScript.

There are many common used methods from Standard JavaScript that are also documented within SugarCube's own documentation, like <array>.push() and <array>.pop(). :smiley:

Likely to help those new to the whole web-development thing :confused:. Who might not know how to locate the 'official' documentation for such things on MDN, or have yet learnt how to absorb such Software Developer orientated documentation. :neckbeard:

BawdyInkSlinger commented 1 year ago

Ah, true. I guess I've been subconsciously glossing over those functions. I've updated my title. Thanks for pointing this out.

tmedwards commented 1 year ago

Math.easeInOut() is not documented because it's a legacy static method that only exists for Twine 1.4 compatibility. It's unused by SugarCube.