A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Multi-Room game design questions

Hybrid View

  1. #1
    Member
    Join Date
    Jun 2003
    Posts
    60

    Multi-Room game design questions

    Hey all,

    I'm currently well underway building a multiuser RP environment (I'd have reservations calling it an MMO for now), and would like to solicit some advice from the Flash software architecture gurus around here

    The game, as designed, is similar to the likes of Monkey Island or King's Quest, where a user would traverse an expansive world by entering and exiting static 'scenes', as opposed to scrolling like Super Mario. As implemented right now, I have an SWF for each 'scene', each being loaded using a Loader object into the game shell dynamically as the user enters the scene.

    Each scene is compiled with a .FLA file that holds a library of game widgets, and a generic GameScene class which does some initializing work and performs depth management for the widgets and characters in the scene. However, it is the shell that adds and removes characters in the scene movieclip as they enter and leave the scene in the socket server, utilizing the GameScene public functions 'addGameObject' and 'removeGameObject' to do so (as opposed to simply calling addChild and removeChild on the Loader content).

    I have a few questions regarding this architecture... the most generic and possibly important one is:

    Is this the right approach for this sort of project? In my opinion it feels a tad messy calling functions from a loaded SWF file, forcing dependencies between otherwise unrelated clips. But is there another, cleaner way, while avoiding having to compile the game into one massive SWF file?

    Other related questions are:

    For such a game, where would you place NPC's (non-player characters)? Would you have them reside within the Scene SWF's, or dynamically added to the Scene movieclip once it has been loaded by the Loader object?

    Current Flash games that implement this game paradigm include... the ubiquitous Club Penguin, and Dofus, to name 2 of the best I know among many. Is there anyone here who has developed similar games (or hell, even those games themselves!) who can offer insight to good architecture practices?

    Thanks for any and all help folks!
    Jay
    Last edited by thurinus; 04-07-2008 at 08:11 PM.

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    More appropriate for the game forum.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Knows where you live
    Join Date
    Oct 2004
    Posts
    944
    I would highly suggest against against loading in any form of game logic whatsoever. Even if you have all the code centralized in a set of .as files, any changes will force a recompiling of every scene which is a waste of time, causes duplication and opens the possibility of errors.

    Work out a map format that can do what you want (Probably tile based) and only load in graphics/sounds as they are necessary.

    NPCs should probbably end up being normal characters being run by the server, but it is very dependent on what they will be doing.
    The greatest pleasure in life is doing what people say you cannot do.
    - Walter Bagehot
    The height of cleverness is to be able to conceal it.
    - Francois de La Rochefoucauld

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center