littlejsengine 1.8.9 → 1.9.0

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 (45) hide show
  1. package/README.md +17 -17
  2. package/build/littlejs.d.ts +312 -250
  3. package/build/littlejs.esm.js +633 -599
  4. package/build/littlejs.esm.min.js +1 -1
  5. package/build/littlejs.js +632 -599
  6. package/build/littlejs.min.js +1 -1
  7. package/build/littlejs.release.js +567 -535
  8. package/examples/breakout/game.js +4 -4
  9. package/examples/breakout/index.html +3 -3
  10. package/examples/breakoutTutorial/index.html +2 -2
  11. package/examples/electron/game.js +1 -1
  12. package/examples/electron/index.html +2 -2
  13. package/examples/favicon.png +0 -0
  14. package/examples/js13k/index.html +13 -13
  15. package/examples/module/game.js +1 -1
  16. package/examples/module/index.html +1 -1
  17. package/examples/particles/index.html +1 -1
  18. package/examples/platformer/game.js +6 -6
  19. package/examples/platformer/gameCharacter.js +293 -0
  20. package/examples/platformer/gameEffects.js +8 -5
  21. package/examples/platformer/gameObjects.js +13 -13
  22. package/examples/platformer/gamePlayer.js +9 -293
  23. package/examples/platformer/index.html +7 -6
  24. package/examples/puzzle/game.js +3 -2
  25. package/examples/puzzle/index.html +2 -2
  26. package/examples/starter/game.js +2 -2
  27. package/examples/starter/index.html +13 -13
  28. package/examples/stress/index.html +34 -26
  29. package/examples/typescript/index.html +1 -1
  30. package/package.json +1 -1
  31. package/src/engine.js +28 -28
  32. package/src/engineAudio.js +57 -57
  33. package/src/engineDebug.js +66 -65
  34. package/src/engineDraw.js +47 -56
  35. package/src/engineExport.js +1 -0
  36. package/src/engineInput.js +57 -40
  37. package/src/engineMedals.js +32 -29
  38. package/src/engineObject.js +41 -26
  39. package/src/engineParticles.js +98 -72
  40. package/src/engineRelease.js +1 -1
  41. package/src/engineSettings.js +22 -22
  42. package/src/engineTileLayer.js +34 -33
  43. package/src/engineUtilities.js +44 -44
  44. package/src/engineWebGL.js +105 -126
  45. package/src/jsconfig.json +10 -0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # ![LittleJS Logo](examples/favicon.png) LittleJS - The Tiny Fast JavaScript Game Engine
1
+ # LittleJS - The Tiny Fast JavaScript Game Engine
2
2
 
3
3
  <div align="center">
4
4
 
@@ -16,7 +16,7 @@
16
16
 
17
17
  LittleJS is a fast lightweight open source HTML5 game engine for modern web development.
18
18
  It's small footprint is packed with a comprehensive feature set including hybrid rendering, physics, particles, sound effects, music, and input handling.
19
- The code is very clean and well documented with some fun examples to get you started. Choo-Choo! 🚂
19
+ The code is very clean and well documented with some fun examples to get you started. Choo-Choo!
20
20
 
21
21
  ### 🚀 Join the First Ever LittleJS Game Jam
22
22
 
@@ -37,7 +37,7 @@ LittleJS is a small but powerful game engine with many features and no dependenc
37
37
  ### ✨ Graphics
38
38
 
39
39
  - Super fast sprite and tile map rendering engine with WebGL
40
- - Update and render well over 10,000 sprites at a solid 60fps
40
+ - Update and render 100,000+ sprites at a solid 60fps
41
41
  - Apply [Shadertoy](https://www.shadertoy.com) compatible shaders for post-processing effects
42
42
  - Robust particle effect system and [effect design tool](https://killedbyapixel.github.io/LittleJS/examples/particles/)
43
43
 
@@ -74,26 +74,26 @@ LittleJS is a small but powerful game engine with many features and no dependenc
74
74
  - Bitmap font rendering and includes a built in engine font
75
75
  - Medal system tracks and displays achievements with Newgrounds integration
76
76
 
77
- ## Demos
77
+ ## How to use LittleJS
78
78
 
79
- These examples are for both learning and using as starter projects to create your own games.
79
+ To get started download the latest LittleJS package from GitHub or install via npm: ```npm install littlejsengine```
80
80
 
81
- ### [Starter Project](https://killedbyapixel.github.io/LittleJS/examples/starter/) - Clean example with only a few things to get you started
82
- ### [Breakout](https://killedbyapixel.github.io/LittleJS/examples/breakout/) - Block breaking game with post-processing effects
83
- ### [Puzzle Game](https://killedbyapixel.github.io/LittleJS/examples/puzzle/) - Match 3 puzzle game with HD rendering and high score tracking
84
- ### [Platformer](https://killedbyapixel.github.io/LittleJS/examples/platformer/) - Platformer/shooter with procedural generation and destruction
85
- ### [Stress Test](https://killedbyapixel.github.io/LittleJS/examples/stress/) - Max sprite/object test and music system demo
86
- ### [Particle System Designer](https://killedbyapixel.github.io/LittleJS/examples/particles/) - Particle system editor and visualizer
81
+ Learn how to make a simple game from scratch with [The Breakout Tutorial.](https://github.com/KilledByAPixel/LittleJS/tree/main/examples/breakoutTutorial)
87
82
 
88
- ## How to use LittleJS
83
+ [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.
89
84
 
90
- To get started download the latest LittleJS package from GitHub or install via npm: ```npm install littlejsengine```.
85
+ Join our vibrant community on [Discord](https://discord.gg/zb7hcGkyZe) to get help, share your projects, and collaborate with others!
91
86
 
92
- [The Breakout Tutorial](https://github.com/KilledByAPixel/LittleJS/tree/main/examples/breakoutTutorial) demonstrates how to make a simple game from scratch. [The tutorial is also available on YouTube.](https://youtu.be/tSwDx-NWTXE?si=bkjMa8-7AN2Wg5MO)
87
+ ## Demos
93
88
 
94
- [This GitNation talk explains how LittleJS works with some tips on how to use it.](https://youtu.be/_dXKU0WgAj8?si=ZDXLYAFDWp54hrGT)
89
+ These examples are for both learning and using as starter projects to create your own games.
95
90
 
96
- Join our vibrant community on [Discord](https://discord.gg/zb7hcGkyZe) to get help, share your projects, and collaborate with others.
91
+ - [Starter Project](https://killedbyapixel.github.io/LittleJS/examples/starter/) - Clean example with only a few things to get you started
92
+ - [Breakout](https://killedbyapixel.github.io/LittleJS/examples/breakout/) - Block breaking game with post-processing effects
93
+ - [Puzzle Game](https://killedbyapixel.github.io/LittleJS/examples/puzzle/) - Match 3 puzzle game with HD rendering and high score tracking
94
+ - [Platformer](https://killedbyapixel.github.io/LittleJS/examples/platformer/) - Platformer/shooter with procedural generation and destruction
95
+ - [Stress Test](https://killedbyapixel.github.io/LittleJS/examples/stress/) - Max sprite/object test and music system demo
96
+ - [Particle System Designer](https://killedbyapixel.github.io/LittleJS/examples/particles/) - Particle system editor and visualizer
97
97
 
98
98
  ## Builds
99
99
 
@@ -190,7 +190,7 @@ Debug builds of LittleJS have a special menu that can be opened by pressing the
190
190
 
191
191
  ## Games Made With LittleJS
192
192
 
193
- Here are a few of the amazing games people are making with LittleJS...
193
+ Here are a few of the amazing games people made using LittleJS...
194
194
 
195
195
  - [Space Huggers](https://www.newgrounds.com/portal/view/819609) - Run and gun platformer with procedural levels
196
196
  - [Undergrowth](https://undergrowth.squidband.uk/) - An interactive music videogame for the band Squid