Programming Blog

Programming related articles.

My love themed js1k competition entry

For this year's love themed js1k competition I made a classic snake game. Here is the code and here is the demo.

Truck game: A javascript game that uses svg animations for movement (firefox only)

The other day my wife and I were looking for an educational game to teach our son how to use a computer. Unfortunately most of the games on the internet were a little too competitive for our purposes. So I decided to roll my own.

It is a javascript game that uses svg animations for movement. Unfortunately game is using some of the firefox specific methods, so it is only working in firefox right now. But I will fix it as soon as I have some spare time.

Anyway here is the game. Source code can be found in github.

Tetris in javascript

As an experiment, I wrote a tetris implementation in ecmascript 5. I used canvas to draw the images. My goal was to drop it under 1K and join the js1K. But I couldn't take it under 2K even I drop some features. Here is the page (Source can be found in github).