All games / Eric Tedjamulia / Java to Canvas
Dodge
Move the blue square with your pointer. Green pickups give 300 ticks of invincibility; eating blocks then shrinks you.
Port notes and original source
Ported from DODGE~1.JAV, checked against dodge.class. Keeps the 5 ms simulation, spawn and growth intervals, green pickups, and 300-tick power-up. A minimum player size prevents negative drawing dimensions. Click or drag after a collision to restart.
Original Java archive. The original source and artwork were preserved. This version runs in JavaScript and HTML canvas without a Java plugin. A local copy can also be opened directly from its index.html file.