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


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


  • *
  • 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).


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?