This is a miniature version of the classic Space Invaders game. It is written in the smallest amount of JavaScript that I could squeeze it. The core logic of the game is a single function that fits in less than 140 bytes.
.........
..#.#.#..
..#.#.#.. # Invader
.........
....i.... i Bullet
.........
....^.... ^ You
---------
Left Arrow = Move left
Right Arrow = Move right
Up Arrow = Fire
The update function is the core logic of the game. It processes all game data for the next display frame. This is the key function that I am trying to minimize. I realize it's cheating a bit to ignore the size of the outer script, but it's the benchmark I have chosen since the display mechanism is arbitrary and less important, for my purposes.
The update function can be stripped of white-space and formatted to fit in 126 characters of text. This is small enough to satisfy the 140-byte limit for tweeting etc.