DickDynamite: behind the scenes
[ June 21, 2003 ] by Marco Lapi, a.k.a Lapo
This article is an overview on the features and the techniques employed in the making of "Dick Dynamite". Lapo also discusses the difficulties and the limits found working with Flash MX. Some of the complex topics touched in this article will be investigated in future articles.


(continues from page 2)

SERVER SIDE INTEGRATION & MODULARITY

Server side integration is a very important aspect of web-based games: different informations about the game status need to be exchanged between the client and the server to make games richer : from basic highscores tables to more advanced features like saving custom made levels, all these operations cannot be achieved without using a bit of server side communication.

In DickDynamite we implemented a lot of client-server interaction to manage the user maps, the LevelEditor and the Arena.

With the latest Flash Mx, server side integration is achieved easily: the new LoadVars() object makes it very simple to send and load data from a server, while for more complex data exchange you should try the Flash Remoting Components.

In DickDynamite all server work is done using PHP, a very popular oper-source scripting language
that is specifically designed for the web.
Its syntax is very C-like and so it resembles actionscript in many ways. In our future articles on server side interaction we will use samples written in PHP: they will just serve as a guideline to learn the "idea" behind it, so that you can translate them into other languages as well.

Modularity was another important issue: the game was divided into 3 main components that
interact together.

1) Game Engine (XML parsing, game logic, AI, server side comm.)
2) Media Assets (Graphix, Sound fx, Music)
3) Dynamic Data (game levels, user status, statistics)

As you can see these 3 blocks are furtherly subdivided into modules that take care of a specific task: these modules are the "building blocks" of the game (more generally, every game should be broken into smaller elements) and they should be kept as a separate entities.

Pic 3: a custom map generated
with the LevelEditor.

That's all for now, this was just a tour in the features that we implemented in DickDynamite and that we would like to share, so stay tuned for next articles to come.


        
 
 
Name: Marco Lapi, a.k.a Lapo
Location: Fossano, Italy
Age: 34
Flash experience: started out with Flash 4 back in 1999
Job: web designer/developer
Website: http://www.gotoandplay.it/
 
 
| Homepage | News | Games | Articles | Multiplayer Central | Reviews | Spotlight | Forums | Info | Links | Contact us | Advertise | Credits |

| www.smartfoxserver.com | www.gotoandplay.biz | www.openspace-engine.com |

gotoAndPlay() v 3.0.0 -- (c)2003-2008 gotoAndPlay() Team -- P.IVA 03121770048