Thursday, December 16, 2010

Complete Bejeweled game in less than 2KB

Complete Bejeweled game in less than 2KB: "

You should know Bejeweled from PopCap Games.

Bejeweled screenshot

It’s a game which have been played millions, if not billions, of times. Now PopCap just released the 3rd version of his blockbuster.

To celebrate this event, just like I made when I coded a complete Flash Sokoban game in less than 2KB, I made a Bejeweled version in less than 2KB. The swf file is 2.035 bytes, less than the 2048 need to make 2KB.

Do you think it does not have any feature? Take a look:

* colorful representation of all 7 kinds of jewel
* select a jewel clicking on it
* swap jewels only if they make a chain
* combo chains recognizing
* falling jewels animation
* complex (let’s say “not that basic”) score system
* hint on a possible move when clicking outside the game area

Everything in less than 2KB. The code was mode with the only purpose of making the game fit in less than 2KB, there’s not readability nor optimization.

Here it is the source:[...]

No comments:

Post a Comment