How much word count do code usually take up?


Hi all!

As all of you might know, the word count proclaimed in a game when published by COG includes the code.

Does anyone know how much of the word count do code generally take up?

1 Like

Depends on how you code and how complex things get.
Like, you can have 10k words text to read and 30k code.
Or 20k to read and 25k code


It varies between games depending on how complex they are, but I’d estimate the raw code ends up being like 5-15% of the word count compared to the actual narrative. Mine is probably like 5%. :stuck_out_tongue_closed_eyes:


My current word count, per CSIDE’s assessment:


53K written prose, including the text of selectable options. 66K altogether. Altogether, almost 20% code.

1 Like

For birth of a hero including command lines 314,398, excluding 213567 (so, around 33% is code… but this game has many gamebook mechanics, which are probably not present in other games)


My first story, Nuclear Powered Toaster, was a more code-lite entry, and had around 141,000 words and maybe 19-20k words of code (I would say code words but that sounds like I’m talking about a cypher to keep the Nazis from reading it or something). But because CSIDE’s word count doesn’t include code I did not know the number until I submitted it to HG.


You can actually configure this in CSIDE’s settings, if that’s your preference.

But yes, it all depends and will vary heavily from game to game. Another thing to consider is if you have a lot of text strings stored in variables. Would they count as code or text lines?


Most of the time I prefer it that way, without counting code. Helps when I am tracking word count for a month where I have a specific goal in mind. However, good to know it is adjustable so I can check the length after I finish and have an idea what it will be publicized as by HG instead of having to admit I don’t know how long my own story is.


The screenshot I posted was from CSIDE. I like to update with both counts.


I toggled the including command line thing and my word count didn’t change. That seems odd.


Minor bug: it doesn’t refresh until you make a change in the editor. But as hazel said, you can also access both counts via the project/scene context/action menu.