littlejsengine 1.11.9 → 1.11.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/littlejs.d.ts +485 -492
- package/dist/littlejs.esm.js +548 -529
- package/dist/littlejs.esm.min.js +1 -1
- package/dist/littlejs.js +546 -525
- package/dist/littlejs.min.js +1 -1
- package/dist/littlejs.release.js +502 -484
- package/examples/htmlMenu/game.js +11 -1
- package/examples/htmlMenu/index.html +1 -10
- package/examples/module/game.js +2 -2
- package/examples/shorts/base.html +1 -1
- package/examples/starter/build/index.html +2 -0
- package/examples/starter/build/index.js +1 -0
- package/examples/starter/build/tiles.png +0 -0
- package/examples/starter/build.js +13 -3
- package/examples/starter/game.js +8 -1
- package/examples/starter/game.zip +0 -0
- package/examples/typescript/build/dist/littlejs.esm.js +4834 -0
- package/examples/typescript/build/examples/typescript/build.js +24 -0
- package/examples/typescript/build/examples/typescript/game.js +102 -0
- package/examples/typescript/build.bat +5 -0
- package/examples/typescript/build.js +33 -0
- package/examples/typescript/game.js +102 -0
- package/examples/typescript/game.ts +134 -0
- package/examples/typescript/index.html +10 -0
- package/examples/typescript/tiles.png +0 -0
- package/examples/typescript/tsconfig.json +8 -0
- package/package.json +1 -1
- package/plugins/newgrounds.js +44 -35
- package/plugins/postProcess.js +18 -4
- package/plugins/uiSystem.js +196 -30
- package/src/engine.js +21 -20
- package/src/engineAudio.js +59 -59
- package/src/engineDebug.js +44 -41
- package/src/engineDraw.js +58 -58
- package/src/engineExport.js +2 -4
- package/src/engineInput.js +40 -35
- package/src/engineMedals.js +21 -11
- package/src/engineObject.js +42 -35
- package/src/engineParticles.js +10 -10
- package/src/engineSettings.js +77 -82
- package/src/engineTileLayer.js +21 -21
- package/src/engineUtilities.js +150 -150
- package/src/engineWebGL.js +3 -3
package/src/engineWebGL.js
CHANGED
|
@@ -23,7 +23,7 @@ let glCanvas;
|
|
|
23
23
|
let glContext;
|
|
24
24
|
|
|
25
25
|
/** Should webgl be setup with anti-aliasing? must be set before calling engineInit
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {boolean}
|
|
27
27
|
* @memberof WebGL */
|
|
28
28
|
let glAntialias = true;
|
|
29
29
|
|
|
@@ -246,7 +246,7 @@ function glFlush()
|
|
|
246
246
|
|
|
247
247
|
/** Draw any sprites still in the buffer and copy to main canvas
|
|
248
248
|
* @param {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} context
|
|
249
|
-
* @param {
|
|
249
|
+
* @param {boolean} [forceDraw]
|
|
250
250
|
* @memberof WebGL */
|
|
251
251
|
function glCopyToContext(context, forceDraw=false)
|
|
252
252
|
{
|
|
@@ -260,7 +260,7 @@ function glCopyToContext(context, forceDraw=false)
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
/** Set anti-aliasing for webgl canvas
|
|
263
|
-
* @param {
|
|
263
|
+
* @param {boolean} [antialias]
|
|
264
264
|
* @memberof WebGL */
|
|
265
265
|
function glSetAntialias(antialias=true)
|
|
266
266
|
{
|