A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: How many lines of code is the average/your average flash game?

  1. #1
    Member
    Join Date
    Jul 2012
    Posts
    39

    Talking How many lines of code is the average/your average flash game?

    With and without frameworks the developer wrote.

    My first Flash game(I wrote it in Actionscript 2.0) is around 5500, though I didn't use OOP then.
    The framework I wrote for my games is around 5000 lines(When I summed up the number of lines in v1.0 it was 4614, and now I am on v1.22).
    I am working on my first serious Flash project and I'm done with the engine, the menus and half of the levels. I need to make more levels(Around as twice more), a final boss, cutscenes, achievements, saving, a progress tracker and a few more basic things.
    With the framework I mentioned it counted 10576 lines, so subtract around 5000 and you get around 5576. The stuff I need to add will probably raise that to around 8000. The game is not mega complex, but it's not a simple game. The reason I have to write a few thousand less lines is because of my framework, which makes many things very easy to implement.

    What about your projects and others' you know about?

  2. #2
    Junior Member mr malee's Avatar
    Join Date
    Feb 2012
    Location
    Shelter
    Posts
    6
    It's not about the size of your code but how you use it.

  3. #3
    Member
    Join Date
    Jul 2012
    Posts
    39
    Well, yes, but this topic isn't really about going into detail for that... People can just mention if they are using a framework and OOP.

  4. #4
    Hype over content... Squize's Avatar
    Join Date
    Apr 2001
    Location
    Lost forever in a happy crowd...
    Posts
    5,926
    Just checked as I was curious, Outpost:Swarm has a 125 classes, that's not counting 3rd party ones such as Nape and the Playtomic stuff.

    Swarm is really cut down from Outpost:Haven, so I dread to think how many classes are in that, 150+ easily.

    That's the beauty of composition over inheritance

    Squize.

  5. #5
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    1 line

  6. #6
    Member
    Join Date
    Jul 2012
    Posts
    39

    Question

    Umm, 1..?
    lol

  7. #7
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    stop();

    lol

  8. #8
    When in doubt ask Eager Beaver's Avatar
    Join Date
    Feb 2007
    Location
    Planet Earth
    Posts
    911
    Are you paid by the lines of code you have in the game? -LOL-
    <signature removed by admin>

  9. #9
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Location
    Grand Rapids MI
    Posts
    2,378
    Quote Originally Posted by Squize View Post
    Just checked as I was curious, Outpost:Swarm has a 125 classes, that's not counting 3rd party ones such as Nape and the Playtomic stuff.

    Swarm is really cut down from Outpost:Haven, so I dread to think how many classes are in that, 150+ easily.

    That's the beauty of composition over inheritance

    Squize.
    I was curious too; might not be a game but the kiosk software I developed used 92 classes and came in right under the 25000 line mark. Ultimately it depends on your game; though depending on how you write said code, it might be more of a hindrance if you're not writing efficient code.
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

  10. #10
    Senior Member
    Join Date
    Sep 2008
    Posts
    121
    At average about 1000 lines for me.

  11. #11
    Junior Member
    Join Date
    Oct 2012
    Location
    Nintendo Land
    Posts
    15
    I'm just starting to do JavaScript. Mine are about 150-400 lines long.

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