Secure Communication Between ActionScript and PHP

When I wanted to implement a high score table in my last game, I knew I would have to use some kind of encrypted communication between a Flash client and a server-side code, or soon someone would forge a score. If you are serious about creating a commercial Flash game, you are better off choosing one of many providers of on-line game services. Their solution scales better than your would-be implementation, has higher availability, and was thoroughly tested with thousands of implementations.

However, if you’d like to learn something new, want to create propriety secure communication, or just want to do everything by yourself, read along.
Continue reading “Secure Communication Between ActionScript and PHP”


At the beginning of 2011, I hacked C64DTV that was gathering dust in my closet for years. After I flashed much better games from the fixed DTV games repository, I proudly presented the hack to my co-workers. We fell into the discussion about how the games were made in the old days and how their creators were the real programmers, using dirty tricks in assembly to overcome the restrictions of the early gaming hardware. Soon I made a bet with a junior co-worker to create a game in assembly.
Continue reading “Bet”

Procedural Terrain Generation

I wanted to implement basic procedural terrain generation ever since I took the AI classes at the university, where we used Prolog and console output for the implementation of AI algorithms. Needless to say, everything looked very unimpressive and lame. Several years later, I revisited the basic AI algorithms in Flash and applied them to the concept of the classic 2d platform game. I’ve used three algorithms to generate a terrain for a side-scrolling game:
Continue reading “Procedural Terrain Generation”