Tangle is my contribution to the growing pile of small, lightweight HTML5 game libraries. It's mostly shared here as an educational effort, in conjunction with the Let's Make a Canvas Library series on my blog, and in accordance with the principles outlined in this presentation I gave at UtahJS in June 2012.
Beyond script module loading, this project aims to provide many of the basic building blocks for making a game (or other interactive experience) in HTML5: sprite sheets and animations, stage backgrounds and viewports, music and sounds, state management, and so on. However, unlike game frameworks such as Impact.js and LimeJS, there's no "one right way" to use Tangle. As such, it's not as easy to get started as with those guys, but instead you get a handful of discrete functional modules to make your coding life easier, and the flexibility to use them however you want.
Currently, the following modules are available and ready for use (examples are hyperlinked where available):
As Tangle continues to evolve, modules will be added as occasion permits. Currently, the following modules are in various stages of planning or development:
- Collision detection
- Physics engine
- Screen (viewport-sized subsection of a Map)
It is likely that this module list will evolve over the course of the blog series, so check back often.