Is there a way to see how many lines of code are in a game in total?

Omniso

  • Posts: 138
Including lines of code in all behaviors, sprites, and scenes.

merrak

  • *
  • Posts: 2241
You can count the number of lines in all of the generated .hx files using the wc command. I'm not sure if wc is available on Windows or Mac. It is on Linux (Bash).

See https://stackoverflow.com/questions/1358540/how-to-count-all-the-lines-of-code-in-a-directory-recursively

I'm not sure how well the lines of generated .hx code will correlate to number of code blocks if you're using design mode. There's also the question of what libraries to include in your count. Do you count the Stencyl engine, too? What about any .hx code that the Haxe compiler would discard when it's generating CPP, etc code?