This game’s source code fits into a single tweet

Share on facebook
Share on twitter
Share on linkedin
Share on email

A lot of gamers know that game development is a complicated affair that results in millions of lines of code. But at least one developer has figured out a way to make a fully-functional, somewhat-fun game using fewer than 140 characters. 137 characters (with spaces), to be exact.

That developer is Alex Yoder and the game is Tiny Twitch, a browser game that was made using a combination of Javascript and HTML code. Specifically, this code:

<script>var e,s=0,;function f(){((<15000)?}</script><p id=”a” onclick=”f()”>X

Tiny Twitch isn’t exactly Gears of War – or even Pong (or indeed anything else, really – ed.) – but it’s brilliant in its simplicity. All you need to do is click an X as fast as you can, which disappears and reappears on your screen with every successful click. After 14 seconds or so, a popup tells you how many times you managed to click on the X. That’s it.

Try it out, at least for a few seconds, and marvel at the simplicity and elegance of Yoder’s code.

Great job, Alex!

[Source – Hacker News]

Deon du Plessis

Deon du Plessis

Deon got his first taste of PC gaming at the tender age of 11 when his father bought an 8088 XT, ostensibly to "help him with his homework". Instead, it introduced him to Leisure Suit Larry, King Graham, Sonny Bonds and many more, and Deon has been a PC gamer and hardware enthusiast ever since. He landed his first professional writing gig in 2006 at a prestigious local PC magazine, a very happy happenstance as he got to write for a living about things he loves - tech, PCs, gaming, and everything in between. He's been writing about it all ever since, and loves every minute of it.


[mailpoet_form id="1"]