Guidelines for Flash Developers

14 October 2010

Initial thoughts on how Flash developers should write their games to enable sim-ship or close to sim-ship of their iPhone version.

  • Dictionary, Array, Lists are fine
  • XML and JSON are fine, but not inline and/or embedded
  • No deep inheritance hierarchies
  • Binary files should be atomic, e.g. sprite, movie, i.e. no embedded propietary metadata
  • Avoid Adobe specigic libraries or if you’re going to adopt, investigate support for alternate platforms
  • Until you get to 3D with long view distances, collision detection, multi-bone skinning, inverse kinematics, hundreds of NPC characters and > 32 real players… keep it simple. And:

  • Avoid allocating memory
  • Avoid string operations
  • Avoid exceptions (see avoid allocating memory)