This may or may not be of interest to anybody, but I've recently started experimenting in earnest with HTML5 Canvas - in particular finding out what kind of performance you can get with games (before you make the leap to something like WebGL (although that does have limited support)).

It's loosely TH related as I've been using some TH content and may continue to add basic TH functionality, although I have no intention at this point of recreating the game (even aside from the potential for litigation from EA) - anyway you can find the experiment so far here if you're interested.

The code is quite rough and ready as I've been trying a lot of different things to see the effect on performance. There is limited things to do right now, I'm really only looking at the engine at this point. People make their own movement decisions around the 'map', although you can influence one particular person by clicking on the map.

I've been getting a good 60fps with 4000 humans wondering about so I'm quite impressed with the canvas so far!

Just a small update: added some basic UI elements (using the DOM rather than drawing in the canvas).

I've also included some very rough new features, for example each patient has a name, and is displayed in the UI when you hover over them. The hover over code was only a quick 5min addition and needs massive improvements, it's still a bit fidgety.

I'm working on some basic action handlers for the actors (to make animations and actions easier to manage), creating a basic map (probably be based on the first TH level) and some basic AI.Please do provide any thoughts and feedback

I still need to create an onClick handler for the destruction of the rats (currently just uses a crude mouseover), and my mouse over still needs a bit of a re-work. Next on the list (aside from the aforementioned) is loading a basic level, drawing walls and different floor tiles.

Edit: UPDATE!!

This new version now supports level loading and very nearly wall drawing (the walls are running locally, but need some optimisation before I'm going to upload). I have removed (temporarily of course) rat destruction.