I have to write a textual scenario for a gamming code . Should i write about the game or should i be writing about the code?

Ttextual scenario is about Engineering and System Design.
Not game design!

Only in games its called the T.D.D. (Technical Design Document).

Okay, In general what do we write in a textual scenario ?

Hmm! Seems new terminology is sneaking into game development.
for years we've called it a G.D.D. (Game Design Document)

but sounds like Textual Scenario is also used for game design as to preliminary scene design.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.