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.
Files changed (44) hide show
  1. package/README.md +3 -3
  2. package/dist/littlejs.d.ts +485 -492
  3. package/dist/littlejs.esm.js +548 -529
  4. package/dist/littlejs.esm.min.js +1 -1
  5. package/dist/littlejs.js +546 -525
  6. package/dist/littlejs.min.js +1 -1
  7. package/dist/littlejs.release.js +502 -484
  8. package/examples/htmlMenu/game.js +11 -1
  9. package/examples/htmlMenu/index.html +1 -10
  10. package/examples/module/game.js +2 -2
  11. package/examples/shorts/base.html +1 -1
  12. package/examples/starter/build/index.html +2 -0
  13. package/examples/starter/build/index.js +1 -0
  14. package/examples/starter/build/tiles.png +0 -0
  15. package/examples/starter/build.js +13 -3
  16. package/examples/starter/game.js +8 -1
  17. package/examples/starter/game.zip +0 -0
  18. package/examples/typescript/build/dist/littlejs.esm.js +4834 -0
  19. package/examples/typescript/build/examples/typescript/build.js +24 -0
  20. package/examples/typescript/build/examples/typescript/game.js +102 -0
  21. package/examples/typescript/build.bat +5 -0
  22. package/examples/typescript/build.js +33 -0
  23. package/examples/typescript/game.js +102 -0
  24. package/examples/typescript/game.ts +134 -0
  25. package/examples/typescript/index.html +10 -0
  26. package/examples/typescript/tiles.png +0 -0
  27. package/examples/typescript/tsconfig.json +8 -0
  28. package/package.json +1 -1
  29. package/plugins/newgrounds.js +44 -35
  30. package/plugins/postProcess.js +18 -4
  31. package/plugins/uiSystem.js +196 -30
  32. package/src/engine.js +21 -20
  33. package/src/engineAudio.js +59 -59
  34. package/src/engineDebug.js +44 -41
  35. package/src/engineDraw.js +58 -58
  36. package/src/engineExport.js +2 -4
  37. package/src/engineInput.js +40 -35
  38. package/src/engineMedals.js +21 -11
  39. package/src/engineObject.js +42 -35
  40. package/src/engineParticles.js +10 -10
  41. package/src/engineSettings.js +77 -82
  42. package/src/engineTileLayer.js +21 -21
  43. package/src/engineUtilities.js +150 -150
  44. package/src/engineWebGL.js +3 -3
@@ -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 {Boolean}
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 {Boolean} [forceDraw]
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 {Boolean} [antialias]
263
+ * @param {boolean} [antialias]
264
264
  * @memberof WebGL */
265
265
  function glSetAntialias(antialias=true)
266
266
  {