machete-framework
v0.0.1
Published
The Machete HTML DOM Game Framework
Downloads
9
Maintainers
Readme
Machete
The Machete HTML DOM Game Framework
Built by Technohacker
Concept
Unlike traditional JS Game Engines (which use the <canvas>
element), this framework uses the HTML DOM, rendered by the Browser's DOM Engine.
This offers a few benefits:
- You can design the stage using HTML instead of defining it in JS code thus separating concerns.
- Over the years, browser vendors have strived to get the most performance out of their web layout engines. Therefore, DOM rendering is sometimes faster than
<canvas>
rendering. - HTML can be easily styled with CSS, so you don't have to specify the style in JS code.
Progress
I can consider the framework as quite usable but I need others to try out the framework for understanding the API usability. So I mark it alpha.
Pull requests are always welcome! :smile:
TODO:
- Offer two versions: raw ES6, Transpiled to ES5
- Add documentation