Author Archives: gamealchemist

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

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