A Flash Developer Resource Site

Results 1 to 20 of 97

Thread: [disc/question] How do you organize your code?

Threaded View

  1. #1
    FK's Resident ...... Resident flashMasterHand's Avatar
    Join Date
    Aug 2003
    Location
    Connecticut, USA
    Posts
    168

    [disc/question] How do you organize your code?

    Hey all.

    I was just wondering (like the title says), how do you organize the code in your games.

    For instance, in one of my first games (a side scrolling asteriods), I had four keyframes: the first was the title screen, second was the instuctions,credits,etc, third was the actual game, and fourth was the game over screen. All the code relating to the spaceship was placed on the spaceship, asteriod code on asteriods, etc. Nothing (except duplicating the asteriods and lasers) was placed at runtime.

    However, I am leaning more and more towards having everything coded in the frames, and everything placed at runtime. I have noticed this in other people's flas, too.

    So, how do you organize your code? Do you put everything in objects? Classes? You get the idea (I hope ) Anyway, thanks for listening to me.

    Thanks
    Dave

    [edit] 90th post!! Only ten more to go till my own avatar![/edit]
    Last edited by flashMasterHand; 07-20-2004 at 08:33 AM.
    Programmers don't die, they just GOSUB without RETURN.

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