A few months ago I wrote my first DirectX game. I finally got around to trying something in HTML5 canvas as well. This is based on the tutorial here. It’s not quite complete as I needed to get some sleep last night. Play the game here. It doesn’t work very well embedded.