Gaming Platform (100% JavaScript)

The whole purpose was to push the limits of what can be done with just JavaScript. So no Java/Flash is needed or used. I've tested on Firefox and Internet Explorer.

This is just a simple demo game with only one building and a couple resources. There are a few surprises in later levels (not telling), but it's mostly to help test the platform. The final game will have many more buildings and items, and be playable online in an unbounded world.

Controls:
Space - Switch mode.
D - Demolition mode. For demolishing things to make space for farms.
H - Harvest mode. For harvesting crops or trees by clicking on them.
F - Farm building mode. To build farms. Click to place a farm.
M - Move mode. In this mode you can use the left mouse button to drag yourself around the world.
Middle Mouse Button - Use this to move around, in any mode.
Arrow Keys - Another way to move around.

There are 4 levels, plus a bonus one, which you can keep playing as many times as you want.