Did the framework, long ago abandoned, now remembered of this
topic. There was a clearly described problem in html5:
games on HTML5 require much more time and resources to develop.
games in HTML5 are open source, which is unacceptable for free games, locked on to a single portal.
— inadequate packaging of the game into a single file for distribution on different portals.
— the lack of adequate vector graphics, as SVG is not usable.
When thinking about this, I started the development of this framework, trying to fix something. And I would like to ask: is it worth it to continue? For more details, describe the framework.
On the page, insert something like this:
Where cnv — id some canvas and test.js — js file. Which may be, for example:
ctx.fillText('Hello, world', 10, 10);
— any script is rigidly fixed to a specific canvas and can not control the DOM of the page (for security purposes, so you got your site to push). It is possible to assign event handlers on the canvas and work with both contexts — 2D and WebGL. Well and additional features.
— special classes to simplify life — one mathematical, the other — work with... In General: Vector, Matrix, Rectangle, Ajax, Class, Color...
— additional features for working with different audio and video.
— when any ajax request sends an additional header, through which it can recognize (for security purposes from any kind of CSRF) — is implemented by substitution of XMLHTTPRequest, where the xhr original is stored in the bowels of the circuit.
— well, and a bunch of other utility functions, like Array#each #first, #last, String#camelize, etc...