Skip to content
ํ”„๋กœ์ ํŠธ

์†Œ๊ฐœ

World's fastest HTML5 2D game engineย ย ย ๐Ÿ›ธ

๊ฒŒ์ž„ ๋ฐ ์—๋ฎฌ๋ ˆ์ด์…˜

์ด ์ˆ˜์น˜๋ฅผ ์ธก์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

์ธก์ •๋œ ์Šคํƒ€ ์ฆ๊ฐ€

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
๊ธฐ๋ก ์ˆ˜์ง‘ ์ค‘

์„œ๋กœ ๊ฒน์น˜๋Š” ๊ธฐ๊ฐ„์˜ ์ˆœ์ฆ๊ฐ€๋Ÿ‰์ด๋ฉฐ ์ผ๋ณ„ ํ•ฉ๊ณ„๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์ธก์ •๊ฐ’์ด ์—†์œผ๋ฉด ๋น„์›Œ ๋‘ก๋‹ˆ๋‹ค. ์Šคํƒ€๋Š” ๊ด€์‹ฌ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋ฉฐ ํ’ˆ์งˆ์„ ๋ณด์žฅํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

README.md

Original

Blacksmith 2D

BLACKSMITH 2D

A highly optimized 2D framework for web, mobile games, and playable ads.

Examples  ยท  Tutorials  ยท  Engine source  ยท  Game template


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 the Donuts game is only 34KB gzipped for both engine and game code (GCC version).

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.

FEATURES

Every link below opens a runnable example.

โœ”๏ธ Extra lightweight
โœ”๏ธ Display Resolution Awareness
โœ”๏ธ Advanced Particle System
โœ”๏ธ Vector Graphics
โœ”๏ธ Vector Graphics Baking
โœ”๏ธ Smart Cache As Bitmap
โœ”๏ธ Tweens
โœ”๏ธ Message Dispatcher
โœ”๏ธ Sprite Animations
โœ”๏ธ Asset Manager
โœ”๏ธ Advanced Font Rendering and font metrics
โœ”๏ธ Texture Atlas
โœ”๏ธ Input
โœ”๏ธ Clipping Rectangle
โœ”๏ธ Component System
โœ”๏ธ Audio Support
โœ”๏ธ Audio Atlases
โœ”๏ธ Bitmap Fonts
โœ”๏ธ Graphics
โœ”๏ธ Battery Efficient
โœ”๏ธ Render Texture
โœ”๏ธ Arcade Physics
โœ”๏ธ Texture Wrap and Repeat
โœ”๏ธ Nine slice grid
โœ”๏ธ GCC Ready

GETTING STARTED

The game template lives in this repository under template/:

git clone https://github.com/MassiveHeights/Black
cd Black/template
npm install
npm start

Then open http://127.0.0.1:3000 in a browser.

Or install the engine on its own:

npm install black-engine

REPOSITORY LAYOUT

Path Contents
src/ Engine source (ES6 modules)
dist/ Prebuilt UMD, ES module, and minified bundles
examples/ 91 runnable examples across 18 categories
assets/ Assets used by the examples
docs/Tutorials/ Written tutorials
template/ Ready-to-use game template
site/ Landing page for the published site

RUNNING THE EXAMPLES LOCALLY

The examples are plain static files, but they load assets over HTTP, so they need a local server rather than opening index.html from disk:

npx serve .

Then open http://localhost:3000/examples/.

After adding or renaming an example, regenerate the sidebar index:

npm run examples:index

BUILDING

npm run build              # bundles into dist/ (requires Java for the GCC step)
npm run docs               # regenerates docs/api/ (currently failing, see Known issues)
npm run examples:index     # regenerates manifest.js and the README indexes

KNOWN ISSUES

The API reference generator (npm run docs) does not currently run. It uses jsdoc 3.6, which crashes on Node 23+ (util.isRegExp was removed), and still exits non-zero on Node 20 in CI. Until it is fixed, browse the annotated source under src/ instead. The Pages workflow publishes the site without the API reference rather than failing the deploy.

SUPPORT

Found a bug or have a question? Open an issue on the Issues page.

The project is also on Facebook, Discord and Telegram.

LICENSE

See LICENSE.md.

๊ด€๋ จ ํ”„๋กœ์ ํŠธ ์‚ดํŽด๋ณด๊ธฐ

๋ถˆ๋Ÿฌ์˜ค๋Š” ์ค‘โ€ฆ