Rather than, for every level of a game, having to create and place every GameObject on the screen by hand, a better approach can be to create the text files of rows, and columns of characters, where each character corresponds to the type of GameObject that is to be created in the corresponding location.
In this recipe, we'll use a text file and set of prefab sprites to display a graphical version of a text data file for a screen from the classic game, NetHack:
![](https://static.packt-cdn.com/products/9781788471909/graphics/assets/1ff4de70-894c-4bcf-a779-42270d17972e.png)