I’m not a big fan of Javascript. It’s too flexible (dynamic) and the scoping of variables/functions is still completely counter intuitive for me.
But today I gave TypeScript a try. I believe it’s something Microsoft made and you can use it in Visual Studio. It’s strongly typed, has compiler time syntax checking etc. And it generates Javascript.

I spent too long getting a simple thing working. In the end it turned out to be a mistake in variable scoping (sigh).
But I have something! You draw rectangles on the canvas with your mouse (gasp!).

See the example at :



or an update at update:
Now it’s a lot of squares floating around eating each other, dieing etc.


Leave A Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.