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.
- package/README.md +2 -1
- package/copyToGithub.bat +28 -0
- package/dist/littlejs.d.ts +346 -240
- package/dist/littlejs.esm.js +1370 -723
- package/dist/littlejs.esm.min.js +1 -1
- package/dist/littlejs.js +1350 -709
- package/dist/littlejs.min.js +1 -1
- package/dist/littlejs.release.js +1333 -692
- package/examples/box2d/game.js +1 -1
- package/examples/box2d/gameObjects.js +1 -1
- package/examples/breakout/game.js +30 -25
- package/examples/electron/index.html +2 -2
- package/examples/index.html +207 -96
- package/examples/platformer/gameEffects.js +19 -18
- package/examples/platformer/gameLevel.js +6 -1
- package/examples/shorts/base.html +1 -1
- package/examples/shorts/flappyGame.js +2 -1
- package/examples/shorts/helloWorld.js +1 -1
- package/examples/shorts/music.js +106 -0
- package/examples/shorts/parallax.js +71 -0
- package/examples/shorts/piano.js +7 -8
- package/examples/shorts/postProcess.js +25 -8
- package/examples/shorts/shapes.js +1 -9
- package/examples/shorts/song.mp3 +0 -0
- package/examples/shorts/uiSystem.js +15 -8
- package/examples/starter/index.html +2 -2
- package/examples/stress/index.html +8 -3
- package/examples/style.css +14 -4
- package/examples/uiSystem/game.js +11 -11
- package/package.json +1 -1
- package/plugins/box2d.js +10 -8
- package/plugins/drawUtilities.js +5 -5
- package/plugins/newgrounds.js +6 -6
- package/plugins/pluginExport.js +1 -1
- package/plugins/uiSystem.js +103 -79
- package/plugins/zzfxm.js +10 -10
- package/reference.md +90 -54
- package/src/engine.js +22 -22
- package/src/engineAudio.js +284 -109
- package/src/engineBuild.js +9 -9
- package/src/engineDebug.js +26 -26
- package/src/engineDraw.js +148 -97
- package/src/engineExport.js +22 -16
- package/src/engineInput.js +57 -67
- package/src/engineMedals.js +25 -25
- package/src/engineObject.js +25 -22
- package/src/engineParticles.js +59 -59
- package/src/engineRelease.js +1 -1
- package/src/engineSettings.js +20 -13
- package/src/engineTileLayer.js +34 -34
- package/src/engineUtilities.js +62 -55
- package/src/engineWebGL.js +447 -65
- /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
|
package/copyToGithub.bat
ADDED
|
@@ -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!
|