littlejsengine 1.1.17 → 1.2.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 CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  LittleJS is a super lightweight JavaScript game engine with a fast hybrid rendering system. It provides everything necessary to make amazing games, including rendering, physics, particles, sound effects, music, input handling, and debug tools. LittleJS is designed to be extremely small yet powerful enough for a variety of applications, from game jams to commercial releases. The code is very well documented with a variety of examples to get you started. Choo-Choo! 🚂
6
6
 
7
- ## [LittleJS Documentation](https://killedbyapixel.github.io/LittleJS/docs) - [LittleJS Trailer](https://youtu.be/chuBzGjv7Ms) - [LittleJS Trello Roadmap](https://trello.com/b/E9zf1Xak/littlejs)
7
+ ## [LittleJS Documentation](https://killedbyapixel.github.io/LittleJS/docs) - [LittleJS Trailer](https://youtu.be/chuBzGjv7Ms) - [LittleJS Trello](https://trello.com/b/E9zf1Xak/littlejs)
8
8
 
9
9
  ![LittleJS Screenshot](examples/screenshot.jpg)
10
10
 
@@ -33,13 +33,23 @@ LittleJS is a super lightweight JavaScript game engine with a fast hybrid render
33
33
  - Debug tools and debug rendering system
34
34
  - [Full documentation](https://killedbyapixel.github.io/LittleJS/docs) automatically generated from the source code block tags with [JSDoc](https://github.com/jsdoc/jsdoc)
35
35
  - 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
36
+ - For size coding competitions like [js13kGames](https://js13kgames.com/), starter project builds to a 7KB zip with [Roadroller](https://github.com/lifthrasiir/roadroller)
37
37
  - Easily build a Windows executable with [electron](https://www.electronjs.org/) for distribution on platforms like Steam
38
38
  - Open Source with the [MIT license](https://github.com/KilledByAPixel/LittleJS/blob/main/LICENSE) so it can be used to make commercial games
39
39
 
40
+ ## Builds
41
+
42
+ To easily include LittleJS in your game, you can use one of the 3 pre-built js files. These are also built automatically by the build scripts..
43
+
44
+ - [engine.all.js](https://github.com/KilledByAPixel/LittleJS/blob/main/engine/engine.all.js) - The full game engine with debug mode available
45
+ - [engine.all.release.js](https://github.com/KilledByAPixel/LittleJS/blob/main/engine/engine.all.release.js) - The engine optimized for release builds
46
+ - [engine.all.min.js](https://github.com/KilledByAPixel/LittleJS/blob/main/engine/engine.all.min.js) - The engine in release mode and minified
47
+
48
+ 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.
49
+
40
50
  ## Games Made With LittleJS
41
51
 
42
52
  - [Space Huggers](https://github.com/KilledByAPixel/SpaceHuggers) - A more developed version of the platformer example
43
53
  - Send me your games!
44
54
 
45
- ![LittleJS Logo](favicon.png)
55
+ ![LittleJS Logo](favicon.png)
package/build.bat CHANGED
@@ -58,6 +58,7 @@ if %ERRORLEVEL% NEQ 0 (
58
58
  )
59
59
 
60
60
  rem build the html, you can add html header and footers here
61
+ rem type ..\header.html >> index.html
61
62
  echo ^<body^>^<meta charset=utf-8^>^<script^> >> index.html
62
63
  type roadroller_%BUILD_FILENAME% >> index.html
63
64
  echo ^</script^> >> index.html