littlejsengine 1.1.26 → 1.2.9
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 +7 -9
- package/build.bat +1 -1
- package/engine/engine.all.js +369 -377
- package/engine/engine.all.min.js +1 -1
- package/engine/engine.all.release.js +338 -147
- package/engine/engine.js +7 -7
- package/engine/engineAudio.js +2 -2
- package/engine/engineBuild.bat +9 -1
- package/engine/engineDebug.js +32 -231
- package/engine/engineDraw.js +130 -20
- package/engine/engineFont.png +0 -0
- package/engine/engineInput.js +32 -9
- package/engine/engineMedals.js +7 -4
- package/engine/engineObject.js +30 -11
- package/engine/engineParticles.js +5 -3
- package/engine/engineSettings.js +5 -0
- package/engine/engineTileLayer.js +17 -14
- package/engine/engineUtilities.js +50 -18
- package/engine/engineWebGL.js +53 -59
- package/engine/index.d.ts +1644 -0
- package/examples/breakout/game.js +9 -7
- package/examples/breakout/gameObjects.js +3 -3
- package/examples/breakout/index.html +3 -3
- package/examples/particles/index.html +366 -0
- package/examples/particles/tiles.png +0 -0
- package/examples/platformer/game.js +5 -5
- package/examples/platformer/gameEffects.js +10 -10
- package/examples/platformer/gameLevel.js +3 -3
- package/examples/platformer/gameObjects.js +3 -3
- package/examples/platformer/gamePlayer.js +11 -6
- package/examples/platformer/index.html +6 -6
- package/examples/platformer/tiles.png +0 -0
- package/examples/puzzle/game.js +3 -3
- package/examples/puzzle/index.html +2 -2
- package/examples/screenshot.jpg +0 -0
- package/examples/stress/index.html +4 -4
- package/game.js +4 -7
- package/index.html +13 -13
- package/package.json +8 -1
- package/engine/engineBuildSetup.bat +0 -6
package/README.md
CHANGED
|
@@ -19,23 +19,19 @@ LittleJS is a super lightweight JavaScript game engine with a fast hybrid render
|
|
|
19
19
|
## Features
|
|
20
20
|
|
|
21
21
|
- Very small footprint with no dependencies
|
|
22
|
-
- Can render 10,000+ objects at 60fps, often many times more
|
|
23
|
-
- Object oriented system with
|
|
24
|
-
- Fast 2D physics and collision handling for axis aligned boxes
|
|
22
|
+
- Can update and render 10,000+ objects at 60fps, often many times more
|
|
23
|
+
- Object oriented system with fast 2D physics and collision handling for axis aligned boxes
|
|
25
24
|
- Positional audio effects with [zzfx](https://killedbyapixel.github.io/ZzFX/) and music with [zzfxm](https://keithclark.github.io/ZzFXM/), mp3s, or wavs
|
|
26
25
|
- Input processing system with keyboard, mouse, gamepad, and touch support
|
|
27
|
-
- Engine helper functions and classes like Vector2, Color, and Timer
|
|
28
|
-
- Tile layer cached rendering and collision system for level data
|
|
29
26
|
- Particle effects system (particle editor/designer in progress)
|
|
30
27
|
- Medal system tracks and displays achievements with Newgrounds and OS13k integration
|
|
31
28
|
- Several easy to understand example projects you can build on
|
|
32
|
-
- All example projects are compatible with mobile devices
|
|
33
29
|
- Debug tools and debug rendering system
|
|
34
30
|
- [Full documentation](https://killedbyapixel.github.io/LittleJS/docs) automatically generated from the source code block tags with [JSDoc](https://github.com/jsdoc/jsdoc)
|
|
35
31
|
- Build system automatically combines everything, minifies, and removes unused code
|
|
36
|
-
- For size coding competitions like [js13kGames](https://js13kgames.com/), starter project builds to a 7KB zip
|
|
37
|
-
- Easily build a Windows executable with [
|
|
38
|
-
- Open Source with the [MIT license](https://github.com/KilledByAPixel/LittleJS/blob/main/LICENSE) so it can be used
|
|
32
|
+
- For size coding competitions like [js13kGames](https://js13kgames.com/), starter project builds to a 7KB zip with [Roadroller](https://github.com/lifthrasiir/roadroller)
|
|
33
|
+
- Easily build a Windows executable with [Electron](https://www.electronjs.org/) for distribution on platforms like Steam
|
|
34
|
+
- Open Source with the [MIT license](https://github.com/KilledByAPixel/LittleJS/blob/main/LICENSE) so it can be used for anything you want
|
|
39
35
|
|
|
40
36
|
## Builds
|
|
41
37
|
|
|
@@ -45,6 +41,8 @@ To easily include LittleJS in your game, you can use one of the 3 pre-built js f
|
|
|
45
41
|
- [engine.all.release.js](https://github.com/KilledByAPixel/LittleJS/blob/main/engine/engine.all.release.js) - The engine optimized for release builds
|
|
46
42
|
- [engine.all.min.js](https://github.com/KilledByAPixel/LittleJS/blob/main/engine/engine.all.min.js) - The engine in release mode and minified
|
|
47
43
|
|
|
44
|
+
The hello world example includes a batch file [build.bat](https://github.com/KilledByAPixel/LittleJS/blob/main/build.bat) that compresses everything into a tiny zip file using Google Closure, UglifyJS, Roadroller, and ECT.
|
|
45
|
+
|
|
48
46
|
## Games Made With LittleJS
|
|
49
47
|
|
|
50
48
|
- [Space Huggers](https://github.com/KilledByAPixel/SpaceHuggers) - A more developed version of the platformer example
|
package/build.bat
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
rem Simple build script for LittleJS by Frank Force
|
|
2
2
|
rem Minfies and combines index.html and index.js and zips the result
|
|
3
|
-
rem
|
|
3
|
+
rem See the readme for a list of required dependencies.
|
|
4
4
|
|
|
5
5
|
set NAME=game
|
|
6
6
|
set BUILD_FOLDER=build
|