Is it worth making framework?

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:
html5engine.start('cnv', 'test.js');

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...
October 8th 19 at 01:59
3 answers
October 8th 19 at 02:01
no, not worth it. Framwork not to do so. Here you make a game, give up on the approach and architecture and make a second. Then when you do the third highlight of fluorine framework and make it a third. Then it will become normal premortem.
If not a secret why "pampersi"? Even in English it is written "framework". - Sim_Volkm commented on October 8th 19 at 02:04
for the same reason, I often word werd. I do not know. Syllable parasite. - julius.White91 commented on October 8th 19 at 02:07
work (n.)
O. E. weorc, worc "something done, deed, action, proceeding, business, military fortification," from P. Gmc. *werkan (cf. O. S., O. Fris., Du. werk, verk O. N., M. Du. warc, werah O. H. G., Ger. Werk, Goth. gawaurki), from PIE root *werg- "to work" (see urge (V.)).

www.etymonline.com/index.php?allowed_in_frame=0&search=work&searchmode=none

Have you got paleontologiya roots leaped. - Lillie.Schneider commented on October 8th 19 at 02:10
October 8th 19 at 02:03
> any script is rigidly fixed to a specific canvas and can not control the DOM of the page (for security purposes

Sure you will be able to implement? Plus, I do not understand why this is necessary.

> special classes to simplify life

extra brake

> in any ajax request sends an additional header, through which it can recognize (for security purposes from any kind of CSRF)

What a nonsense.

> and a bunch of other utility functions, like Array#each

And so they are in W3C browsers. But in IE no canvas.

Better tell me how you want to support IE7/8, how to solve the problem of nesovmetimosti canvas in different browsers, performance issues. On the flash to make the farm much easier, it will work in all browsers released in the last 10 years and on the labour market flasher is easier to find than a competent HTML5 coder.

I think unless you have a clear understanding of the way of solving these problems, it is pointless to do something.
A clear understanding is.
>> Sure you will be able to implement? Plus, I do not understand why this is necessary.
Already implemented. Why? Puts some famous and good portal some game on the site. And the game quietly substitute the login form and intercepts the password. It is unlikely you will like it. I propose to give the game only those features that she really needed: to draw, to work with sound, video...
Option 2: carefully monitor the source of games. Who will control it? For this site and more money should supervisors pay. Could that miss?

>> the extra brakes
Nothing prevents you to import required classes.

>> What a nonsense.
Again to the question of security. Game — uploaded to your website. And can execute arbitrary ajax requests to your site. For example — to increase the ranking of itself on behalf of the user who opened it. This is called a CSRF attack type.

>> And so they are in W3C browsers.
http://sugarjs.com/ - Sim_Volkm commented on October 8th 19 at 02:06
To continue the thought about the sandbox.
The script can only use 2D and WebGL canvas contexts-and, plus set event handlers on it. This is what I've said. Plus features like "play this sound" to open such a video on top of the canvasa (either broadcast the frames to a canvas).

Continuing the thought about CSRF.
The sad part is that the queries of the game does not distinguish from legitimate requests of the user. Because inside of the sandbox is something like this:
(function(self){
 var xhr = self.XMLHTTPRequest;
 self.XMLHTTPRequest = function(){
 var x = new xhr();
 x.setRequestHeader('X-Requested-With', 'html5engine-ajax');
 return x;
}
})(self);

Well and plus to replace setRequestHeader, so that the script could not back the header to alter. Of course bad system objects to patch, but on the other will not work.

Frankly, IE6-7-8 generally is unlikely to be supported. Just because it's a bunch of additional hacks, brakes and crutches. For browsers with very evanescent popularity. Can I replace canvas on VML with video and audio on the bgsound and embed. But why?
I agree, it's a minus, but he will quickly cease to be relevant. - julius.White91 commented on October 8th 19 at 02:09
PS For full support should see Dojox: there and canvas and vml and svg, and flash and java and silverlight. With the javascript api. But it is unlikely I am going to do - Lillie.Schneider commented on October 8th 19 at 02:12
October 8th 19 at 02:05
I read carefully your question (2 times read!) — You are not the type of game you are targeting. Are you targeting small kaushalye the game, and You need to throw your opinion in the independent major brauzerki.

Flash is, of course, a good platform for writing games, but it has a number of problems.
Games Canvas or WebGL original, but not "effective" — they will never create a full-fledged competition to Flash.
But the "standard" big browser game based on sprite animations and the game js engines will soon begin to revives, since HTML5 has opened up many new possibilities. Here is the place to your framework.
Thanks for the advice.
Frankly, guided not only on the game, hoping that such a framework can be and photoshop to make. After doing the flash... - Sim_Volkm commented on October 8th 19 at 02:08
It's funny to read that html5 will never create the flash competition in light of recent events. - julius.White91 commented on October 8th 19 at 02:11
to : be-that will be, but not the fact that will be as convenient / functional / other adjective. - Lillie.Schneider commented on October 8th 19 at 02:14

Find more questions by tags HTMLFrameworksCanvasJavaScript