Tag: Canvas

Dodge on a Windows 8 tablet

Another version of Dodge! This time I wanted to try moving the square by tilting a Windows 8 tablet. The basic idea is still the same: stay away from the bad blocks and try not to get too big. This version uses an HTML canvas with Box2DWeb doing the collision and body simulation. The game […]

Read post: Dodge on a Windows 8 tablet

Slicing things with Box2D

I have been playing with Box2DWeb and made a little slicing demo. Drag a line through one of the shapes and it breaks into pieces that keep falling and bumping into everything else. It is surprisingly entertaining for something that does not really have a game attached to it yet. Box2D handles the physics. The […]

Read post: Slicing things with Box2D

Dodge, now on a canvas

Whenever I am learning a new language or platform, I seem to end up writing Dodge again. Move a square around, avoid the bad blocks, and see how long you can keep going. This time I tried it with the HTML canvas. It is an 800-by-600 canvas with a plain JavaScript loop running about twenty […]

Read post: Dodge, now on a canvas