Born in 4kb Games on FlashGameLicense competition. A game that is exactly 4096 bytes :) It's featuring Artificial Intelligence, Fog of War, Player Health, 4 Maps and 12 Levels ! Developed in ActionScript 3 for Flash Player 9. Here is a Github link where you can view the optimized code.
Play Attract 4kb
This prototype is created in few days for a friendly community game competition at FGL.
The jam theme was about creating a game with file size less than 4 kilobytes (4096 bytes).
Actually optimization took me more time than creating the game itself, however the experience I gained from this task was huge. I will not go into details about actionscript optimization techniques for now. I'm just happy with the result and want to share that with you. The mood I got from this competition was just amazing and I want to thank jjwallace who set up the contest. Optimization is a skill in its self. Here is a quote from the hot forum discussions that I think describes well my development enthusiasm:
"Every class, function and variable is now a single character, I was forced to replace normal expressions with bitwise shiftings and other circumlocution.. for example after third level the wall colors are automatically bitwise generated. Other example of optimization are the levels - they are saved in 4 bit arrays and occupy only a few bites. On top of that I compressed the compiled SWF further with apparat's 7z reducer method that saved ~100b. You should definitely check that because it may have great impact on larger projects."
(posted 2012-08-06 at 4KB game on FGL)Compression utility:
Apparat at Google code: http://code.google.com/p/apparat/...