Game Design Code Implementation?

A friend and I are working on our GDD right now. We are at the code implementation part of it and dont quite know how to write it out. So far we are breaking it down to what functions and vars we will use for each script but we kind of need some reference on the best way to write the code document out. For instance we have so far for our movement part of the document written as.

`Movement

Single Script. Needs to activate animations and control character prefab. The script controlling Adrenaline will be accessed using GetComponent.

Main Functions:

Input.getbutton

Main Variables:

Speed

Rotation

Direction

Adrenaline(External script)

`
But now we are on to harder parts of the doc like our inventory shop and don’t really know how we should write it out. Can anyone link some reference or examples that mainly has JUST the code implementation part of a GDD? Should we be using a UML diagram? Thanks.

I found this through wikipedia, it’s got a bunch of links at the bottom that may help with the type of document you’re looking for.
http://www.sloperama.com/advice/specs.html

It sounds like you’re getting into more detail than I personally would for a design doc of any kind, I’d keep it at a higher level about objects and notable behaviors of them and potential unknowns.

Any doc at that low a level isn’t going to survive the first week of coding.

Hope that helps.
Ralph