Black is a highly optimized 2D framework for web, mobile games, and playable ads.
Most valuable when size matters
All engine code is written in ES6, fully GCC typed, allowing to eliminate all dead code from your app. For example the size of Donuts game is only 33KB gzipped for both engine and game code.
Advanced scene graph and rendering pipeline
Dirty flag tracks scene changes and avoids unnecessary calculations and context calls. If no changes were made to the scene since last frame, no rendering will be done. Battery efficient.
Cache as bitmap
Automatically detects changes and updates bitmap cache. Allows to gain even more performance on heavy scenes and runs smoothly on old devices.
For more information about how to use Black Engine, please check the Blacksmith 2D website.
The easiest way to start using Black Engine is by downloading ready-up game template:
git clone https://github.com/MassiveHeights/Black-Template cd Black-Template npm install npm start
http://127.0.0.1:4245 in browser!
SIZE AND PERFORMANCE COMPARISON
A Piggy Mark was made to compare basic sprite rendering performance and build size.
|Engine||60 FPS||50 FPS||40 FPS||30 FPS||Size kB||Load Time sec.*|
All tests are made on iPhone 6s Safari.
* How much time it takes to load a test. Tested using UPTRENDS on iPhone 8 with bandwidth of 3G.