We just finished a full-scale custom avatar game in Flash using Robin, the Flash / PHP open source multiuser server system. Here are some screen shots – the launch date will be in June 2010.
You get to create a nanobot out of parts and scale and rotate them as well as set their layer or depth. All this data is passed to Robin which then displays your nanobot on everyone’s screen and their bots get displayed on yours. You then try and keep your bot in the lightest areas to pick up energy and you can also feed on their energy waste represented by pellets. The goal is to stay alive longest.
The updated robin.zip file includes two Avatar examples. The first allows you to assign unique avatars so everyone in the room gets the next avatar in a list. The second example lets the user choose their avatar. The code to customize your avatar like the nano example is not provided but follows the same structure and just adds basic Flash functionality.
Pay close attention to the various ins and outs of the ActionScript as the situation requires some careful code.