Category Archives: Uncategorized

How to defer or postpone execution of some Javascript code

— Just a small tip i’d like to share with you — The issue : Since Javascript is single threaded, during the execution of a piece of code : • Changes to the DOM won’t show. • Event handlers won’t … Continue reading

Posted in Uncategorized | Leave a comment

An Intuitive Description of Runge-Kutta Integration

An Intuitive Description of Runge-Kutta Integration.

Posted in Uncategorized | 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

Javscript : A documentation pattern

documentation in Javascript Javascript does not provide a built-in documentation tool : When one is searching for informations on how to use a class, a method or a property, he will have to dive into the code to find the relevant … Continue reading

Posted in Uncategorized | Tagged | 2 Comments

No more garbage : Pooling objects built with constructor functions – verbose version –

Why creating an object creates an issue. We all know about the evil garbage collector of Javascript, a cruel monster that might at any moment freeze your game to recollect unused memory, and waste some frames or loose some inputs … Continue reading

Posted in Uncategorized | 1 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