Tag Archives: javascript

Writing efficient Javascript : A few tips

Writing efficient Javascript : A few tips The speed of an application does matter, whatever that application does. On the Web, you’ll find quite some post or answers that suggest you shouldn’t care anyhow about speed in the early stage … Continue reading

Posted in code, javascript, optimization, performance | Tagged , , , , | Leave a comment

Painting with The HTML5 Canvas : A small presentation.

Painting with The HTML5 Canvas :A small presentation. What is a Canvas ? Think of your HTML5 canvas as a simple drawing surface that provides some powerful drawing tools. This canvas might be used on an html page for immediate … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Variable width lines in html5 canvas

Hi to all, A quite simple topic today : how to draw a line that has a variable width, one that would look like one of those lines : Those lines can be used to give more strength to a … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Introducing JSparkle, a versatile and fast Javascript Particle engine.

Hello, Explosions, fire, snow, blood, dust, shining stars, bonuses… particles are a handy tool to add nice effects to your games. Every game object that is loosely related to the game logic (– eye candy –) should be handled as … Continue reading

Posted in Uncategorized | Tagged , , , , | 5 Comments

Pooling with init : let’s throw ImpactJs classes in the pool.

Hello, I explained a few times ago a quite simple way of recycling the objects created with true Javscript classes. (here). Still there are other classes scheme, and impact -and probably other framework as well-, uses a variant of┬áJohn Resig’s … Continue reading

Posted in Uncategorized | Tagged , , , | 11 Comments

Let’s get those Javascript Arrays to work fast

Hi, So now let us watch how to handle Javascript arrays with performances in mind. The array object is indeed very powerful, but you need to handle it with care since some quite innocent feature can be have a high … Continue reading

Posted in Uncategorized | Tagged , , | 19 Comments