How would you define a text?

What is a text? Is it just something written? Let's craft a useful definition of what a text is that will help us inform our discussion of video games all semester. Feel free to post examples.