Experimenting with HTML5 Audio and Canvas
Today I have started playing with HTML5 Audio and Canvas. I was able to create a small JavaScript library in a few hours from scratch. Which is currently support playing audio using HTML5 audio (mp3 or ogg, depends on the browser) and also has a very simple “game loop”. Finally I have added some unit tests (using QUnit) and a basic example where my lib is responsible for randomly moving a couple of rectangles on a canvas while playing a background music. I will clean up the code and will push to GitHub, soon (in the meantime it is available in my Dropbox public folder).