littlejsengine 1.13.4 → 1.14.2

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 (53) hide show
  1. package/README.md +2 -1
  2. package/copyToGithub.bat +28 -0
  3. package/dist/littlejs.d.ts +346 -240
  4. package/dist/littlejs.esm.js +1370 -723
  5. package/dist/littlejs.esm.min.js +1 -1
  6. package/dist/littlejs.js +1350 -709
  7. package/dist/littlejs.min.js +1 -1
  8. package/dist/littlejs.release.js +1333 -692
  9. package/examples/box2d/game.js +1 -1
  10. package/examples/box2d/gameObjects.js +1 -1
  11. package/examples/breakout/game.js +30 -25
  12. package/examples/electron/index.html +2 -2
  13. package/examples/index.html +207 -96
  14. package/examples/platformer/gameEffects.js +19 -18
  15. package/examples/platformer/gameLevel.js +6 -1
  16. package/examples/shorts/base.html +1 -1
  17. package/examples/shorts/flappyGame.js +2 -1
  18. package/examples/shorts/helloWorld.js +1 -1
  19. package/examples/shorts/music.js +106 -0
  20. package/examples/shorts/parallax.js +71 -0
  21. package/examples/shorts/piano.js +7 -8
  22. package/examples/shorts/postProcess.js +25 -8
  23. package/examples/shorts/shapes.js +1 -9
  24. package/examples/shorts/song.mp3 +0 -0
  25. package/examples/shorts/uiSystem.js +15 -8
  26. package/examples/starter/index.html +2 -2
  27. package/examples/stress/index.html +8 -3
  28. package/examples/style.css +14 -4
  29. package/examples/uiSystem/game.js +11 -11
  30. package/package.json +1 -1
  31. package/plugins/box2d.js +10 -8
  32. package/plugins/drawUtilities.js +5 -5
  33. package/plugins/newgrounds.js +6 -6
  34. package/plugins/pluginExport.js +1 -1
  35. package/plugins/uiSystem.js +103 -79
  36. package/plugins/zzfxm.js +10 -10
  37. package/reference.md +90 -54
  38. package/src/engine.js +22 -22
  39. package/src/engineAudio.js +284 -109
  40. package/src/engineBuild.js +9 -9
  41. package/src/engineDebug.js +26 -26
  42. package/src/engineDraw.js +148 -97
  43. package/src/engineExport.js +22 -16
  44. package/src/engineInput.js +57 -67
  45. package/src/engineMedals.js +25 -25
  46. package/src/engineObject.js +25 -22
  47. package/src/engineParticles.js +59 -59
  48. package/src/engineRelease.js +1 -1
  49. package/src/engineSettings.js +20 -13
  50. package/src/engineTileLayer.js +34 -34
  51. package/src/engineUtilities.js +62 -55
  52. package/src/engineWebGL.js +447 -65
  53. /package/examples/shorts/{playSound.js → sound.js} +0 -0
package/README.md CHANGED
@@ -73,6 +73,7 @@ LittleJS is a small but powerful game engine with many features and no dependenc
73
73
  - Screenshot and video capture tools
74
74
  - Node.js build system
75
75
  - Bitmap font rendering and built in engine font
76
+ - Optimized for AI-assisted development
76
77
  - Medal tracking system with [Newgrounds](https://www.newgrounds.com/) support
77
78
 
78
79
  ## How To Use LittleJS
@@ -145,4 +146,4 @@ Here are a few of the many amazing games created with LittleJS...
145
146
  [deepscan]: https://deepscan.io/api/teams/22950/projects/26229/branches/831487/badge/grade.svg
146
147
  [deepscan-url]: https://deepscan.io/dashboard#view=project&tid=22950&pid=26229&bid=831487
147
148
  [discord]: https://img.shields.io/discord/939926111469568050
148
- [discord-url]: https://discord.gg/zb7hcGkyZe
149
+ [discord-url]: https://discord.gg/zb7hcGkyZe
@@ -0,0 +1,28 @@
1
+ @echo off
2
+ echo Copying LittleJS files to GitHub repository...
3
+
4
+ REM Set the GitHub repository path (adjust this to your actual GitHub repo location)
5
+ set GITHUB_PATH=C:\dev\GitHub\LittleJS
6
+
7
+ REM Check if GitHub path exists
8
+ if not exist "%GITHUB_PATH%" (
9
+ echo Error: GitHub repository path not found: %GITHUB_PATH%
10
+ echo Please update the GITHUB_PATH variable in this script
11
+ pause
12
+ exit /b 1
13
+ )
14
+
15
+ echo Copying folders and files...
16
+
17
+ REM Copy folders (using /E for subdirectories, /I to create destination, /Y to overwrite)
18
+ xcopy "dist" "%GITHUB_PATH%\dist\" /E /I /Y
19
+ xcopy "examples" "%GITHUB_PATH%\examples\" /E /I /Y
20
+ xcopy "plugins" "%GITHUB_PATH%\plugins\" /E /I /Y
21
+ xcopy "src" "%GITHUB_PATH%\src\" /E /I /Y
22
+
23
+ REM Copy individual files
24
+ copy "jsconfig.json" "%GITHUB_PATH%\" /Y
25
+ copy "package.json" "%GITHUB_PATH%\" /Y
26
+ copy "reference.md" "%GITHUB_PATH%\" /Y
27
+
28
+ echo Copy completed successfully!