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.
- package/README.md +17 -17
- package/build/littlejs.d.ts +312 -250
- package/build/littlejs.esm.js +633 -599
- package/build/littlejs.esm.min.js +1 -1
- package/build/littlejs.js +632 -599
- package/build/littlejs.min.js +1 -1
- package/build/littlejs.release.js +567 -535
- package/examples/breakout/game.js +4 -4
- package/examples/breakout/index.html +3 -3
- package/examples/breakoutTutorial/index.html +2 -2
- package/examples/electron/game.js +1 -1
- package/examples/electron/index.html +2 -2
- package/examples/favicon.png +0 -0
- package/examples/js13k/index.html +13 -13
- package/examples/module/game.js +1 -1
- package/examples/module/index.html +1 -1
- package/examples/particles/index.html +1 -1
- package/examples/platformer/game.js +6 -6
- package/examples/platformer/gameCharacter.js +293 -0
- package/examples/platformer/gameEffects.js +8 -5
- package/examples/platformer/gameObjects.js +13 -13
- package/examples/platformer/gamePlayer.js +9 -293
- package/examples/platformer/index.html +7 -6
- package/examples/puzzle/game.js +3 -2
- package/examples/puzzle/index.html +2 -2
- package/examples/starter/game.js +2 -2
- package/examples/starter/index.html +13 -13
- package/examples/stress/index.html +34 -26
- package/examples/typescript/index.html +1 -1
- package/package.json +1 -1
- package/src/engine.js +28 -28
- package/src/engineAudio.js +57 -57
- package/src/engineDebug.js +66 -65
- package/src/engineDraw.js +47 -56
- package/src/engineExport.js +1 -0
- package/src/engineInput.js +57 -40
- package/src/engineMedals.js +32 -29
- package/src/engineObject.js +41 -26
- package/src/engineParticles.js +98 -72
- package/src/engineRelease.js +1 -1
- package/src/engineSettings.js +22 -22
- package/src/engineTileLayer.js +34 -33
- package/src/engineUtilities.js +44 -44
- package/src/engineWebGL.js +105 -126
- package/src/jsconfig.json +10 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
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
|
|
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
|
-
##
|
|
77
|
+
## How to use LittleJS
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
To get started download the latest LittleJS package from GitHub or install via npm: ```npm install littlejsengine```
|
|
80
80
|
|
|
81
|
-
|
|
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
|
-
|
|
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
|
-
|
|
85
|
+
Join our vibrant community on [Discord](https://discord.gg/zb7hcGkyZe) to get help, share your projects, and collaborate with others!
|
|
91
86
|
|
|
92
|
-
|
|
87
|
+
## Demos
|
|
93
88
|
|
|
94
|
-
|
|
89
|
+
These examples are for both learning and using as starter projects to create your own games.
|
|
95
90
|
|
|
96
|
-
|
|
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
|
|
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
|