littlejsengine 1.11.8 → 1.11.10

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 (39) hide show
  1. package/README.md +3 -3
  2. package/dist/littlejs.d.ts +496 -493
  3. package/dist/littlejs.esm.js +533 -522
  4. package/dist/littlejs.esm.min.js +1 -1
  5. package/dist/littlejs.js +531 -520
  6. package/dist/littlejs.min.js +1 -1
  7. package/dist/littlejs.release.js +487 -479
  8. package/examples/index.html +8 -2
  9. package/examples/module/game.js +2 -2
  10. package/examples/shorts/base.html +1 -1
  11. package/examples/starter/game.js +8 -1
  12. package/examples/typescript/build/dist/littlejs.esm.js +4834 -0
  13. package/examples/typescript/build/examples/typescript/build.js +24 -0
  14. package/examples/typescript/build/examples/typescript/game.js +102 -0
  15. package/examples/typescript/build.bat +5 -0
  16. package/examples/typescript/build.js +33 -0
  17. package/examples/typescript/game.js +102 -0
  18. package/examples/typescript/game.ts +134 -0
  19. package/examples/typescript/index.html +10 -0
  20. package/examples/typescript/tiles.png +0 -0
  21. package/examples/typescript/tsconfig.json +8 -0
  22. package/package.json +1 -1
  23. package/plugins/newgrounds.js +38 -34
  24. package/plugins/postProcess.js +18 -4
  25. package/plugins/uiSystem.js +196 -30
  26. package/reference.md +3 -3
  27. package/src/engine.js +21 -20
  28. package/src/engineAudio.js +59 -59
  29. package/src/engineDebug.js +44 -41
  30. package/src/engineDraw.js +58 -58
  31. package/src/engineExport.js +2 -2
  32. package/src/engineInput.js +30 -30
  33. package/src/engineMedals.js +1 -1
  34. package/src/engineObject.js +42 -37
  35. package/src/engineParticles.js +10 -10
  36. package/src/engineSettings.js +74 -72
  37. package/src/engineTileLayer.js +21 -21
  38. package/src/engineUtilities.js +168 -168
  39. package/src/engineWebGL.js +3 -3
package/README.md CHANGED
@@ -24,7 +24,7 @@ The code is clean and well documented with some fun examples to get you started
24
24
 
25
25
  <div align="center">
26
26
 
27
- ## [Demo](https://killedbyapixel.github.io/LittleJS/examples/starter/) | [Docs](https://killedbyapixel.github.io/LittleJS/docs) | [Trailer](https://youtu.be/chuBzGjv7Ms) | [Discord](https://discord.gg/zb7hcGkyZe) | [Tutorial](https://github.com/KilledByAPixel/LittleJS/blob/main/examples/breakoutTutorial/README.md) | [FAQ](https://github.com/KilledByAPixel/LittleJS/blob/main/FAQ.md)
27
+ ## [Demos](https://killedbyapixel.github.io/LittleJS/examples) | [Docs](https://killedbyapixel.github.io/LittleJS/docs) | [Trailer](https://youtu.be/chuBzGjv7Ms) | [Discord](https://discord.gg/zb7hcGkyZe) | [Tutorial](https://github.com/KilledByAPixel/LittleJS/blob/main/examples/breakoutTutorial/README.md) | [FAQ](https://github.com/KilledByAPixel/LittleJS/blob/main/FAQ.md)
28
28
 
29
29
  </div>
30
30
 
@@ -62,7 +62,7 @@ LittleJS is a small but powerful game engine with many features and no dependenc
62
62
 
63
63
  - Compatible with all modern web browsers and on mobile devices
64
64
  - Support for TypeScript and Modules with example projects for both
65
- - Ideal for size coding competitions like [js13kGames](https://js13kgames.com/), [starter project builds to a 7KB zip](https://github.com/KilledByAPixel/LittleJS/tree/js13k)
65
+ - Ideal for size coding competitions like [Js13kGames](https://js13kgames.com/)
66
66
  - Open Source with the [MIT license](https://github.com/KilledByAPixel/LittleJS/blob/main/LICENSE) so it can be used for anything you want forever
67
67
 
68
68
  ### 🛠️ And more...
@@ -79,13 +79,13 @@ To get started download the latest LittleJS package from GitHub or install via n
79
79
 
80
80
  *You need to run a local web server to run LittleJS games during development!* You may see a console error like "The image element contains cross-origin data." Don't panic, it's easy to fix! If you are using [Visual Studio Code](https://code.visualstudio.com/) there is a [Live Preview Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.live-server) that will handle this for you automatically. Another option is to setup a simple local web server like [http-server](https://www.npmjs.com/package/http-server) via npm.
81
81
 
82
-
83
82
  - [Watch this GitNation talk](https://youtu.be/_dXKU0WgAj8?si=ZDXLYAFDWp54hrGT) to hear more about LittleJS works and get some tips on how to use it.
84
83
  - Learn how to make a simple game from scratch with [The Breakout Tutorial.](https://github.com/KilledByAPixel/LittleJS/tree/main/examples/breakoutTutorial)
85
84
  - [Make a ski game with LittleJS](https://eoinmcgrath.com/little-ski/tutorial.html) - Check out this tutorial by eoinmcg that shows how to make a pixel art style game.
86
85
  - [LittleJS Engine Quick Reference Sheet](https://github.com/KilledByAPixel/LittleJS/blob/main/reference.md) - This cheat sheet can help you get started.
87
86
  - [Check out The Little JS FAQ for more help getting started](https://github.com/KilledByAPixel/LittleJS/blob/main/FAQ.md).
88
87
  - Join our vibrant community on [Discord](https://discord.gg/zb7hcGkyZe) to get help, share your projects, and collaborate with others!
88
+ - For Js13k there is a [separate branch that builds to a 7KB zip](https://github.com/KilledByAPixel/LittleJS/tree/js13k)
89
89
 
90
90
  ## Examples
91
91