How many lines is your project?

I’m currently spanning 62 files and 40,000 lines of code. This does not include C# scripts or vectrosity or any addons, just my own code.

It’s getting to the point where its fairly tiring to hunt down a bug!

The app is a music and lifestyle app that encourages experimentation and creativity for ipad.

Post your stats, and a brief entry about your project for fun.

I got one game prototype with about 26,000 lines and a small mobile game with ~7000 lines
also some tools which are about 2000-3000 lines each (self written). Overall I do manage to have ~50k while maintaining
a good level of extendable code, plugin usage, modules so that hunting down a bug will not end up in a hours task.
If I get a bug I will exactly know where it is coming from, at least at this time, maybe this will get harder if the codebase
gets bigger.

Yeah but you know, unity’s managed to keep my project pretty well managed due to how flexible it is. I would argue I would be in a lot more trouble with classic C++ since the object/script based model allows a lot more containment and reusability.

I wrote about my project size here: http://www.subvertgames.com/blog/28

Lines of code: 16613 (120 scripts)

I’m counting only original lines stripped from comments…it’s a game project for iPad and desktop and only half of the features are in a completed state but the more I’m spending time with this project, the more I see the lines of code number going down :smile:

I’m hoping for 10-20 for next project. This one is outlandish as it’s an app which allows people to create content, so understandable :slight_smile:

20 lines (of my own code :stuck_out_tongue: )

80 lines (not my code:P).

i’ve had three lines, and this stuff is looking great now!

my project with the most lines is around 5000, still on the small scale, but im sure it will grow a lot more in the future

Estimating: 2-4000 atm.

The feline mechanics is 800+ lines of code, more or less! Still a lot of work to do!

click here for feline mechanics

What are you guys using to get the stats, I ended up writing a program in case anyone wants it.

Binaries here:
703487–25358–$CodeMetrics.zip (2.45 KB)

Code here:

class Program
{
	static void Main(string[] args)
	{
		Int32 lines = 0;
		Int32 numChars = 0;
		ProcessFiles("./", ref lines, ref numChars);

		Console.WriteLine("Total lines: " + lines);
		Console.WriteLine("Non-white space characters: " + numChars);
		Console.WriteLine();

		Console.ReadLine();
	}

	private static void ProcessFiles(string dir, ref Int32 numLines, ref Int32 numChars)
	{
		var files = Directory.GetFiles(dir);
		foreach (var file in files)
		{
			var ext = Path.GetExtension(file);
			if (ext == ".cs")
			{
				var lines = File.ReadAllLines(file);
				foreach (var line in lines)
					numChars += line.Trim().Length;

				numLines += lines.Length;

				Console.WriteLine("Scanned " + Path.GetFileNameWithoutExtension(file));
			}
		}

		var dirs = Directory.GetDirectories(dir);
		foreach (var d in dirs)
			ProcessFiles(d, ref numLines, ref numChars);
	}
}

126 classes and 45k lines of code

1 Like

That’s a nice game you got there! :smile:

Reminds me of Donkey Kong Country…

I’m working on an iPhone game and currently have about 100 lines of my own code so far and 3 scripts. The most functional code so far is for the player, so it has many more lines of code than the enemy as of yet. I also coded an intermittent waterfall which didn’t take up many lines either.

i have more midi notes controlling things in app then code, i think im at 90,000 midi events maybe 10,000 lines of code ( but the code is so l33t sometimes i amaze even myself )

Yeah! Still not as good as papa hippo!

We gotta work hard to get to the top!

I estimate my project will have a grand total of 3k~4k lines of code :-0

1 Like

69 C# files here (no external script), 14553 real LOC (= by stripping out comments and blank lines).
(I had a 20000 LOC version back in 2009, but entirely rebuilt it from scratch to a 5000 LOC version).

~ 36+ k lines of code in 130+ scripts. (all C#)

I haven’t checked in a while but I think I’m around 50,000 lines, on some 200+ scripts (not counting plugins). All C# too.

Cheers

1 Like