-
Notifications
You must be signed in to change notification settings - Fork 1
Data Files
Each of the data files are small image files used as the various items displayed during gameplay.
One of the most important aspects of writing beautiful code is consistency. All of the data files are named in the same pattern, grouping them together, and labeling them as a system file that the user should not tamper with.
You can add code to your main program that quickly draws and saves the images before the program starts. You should only use this method if you are trying to compact your program into one file. It takes more time, more lines of code, and more space, and it requires that your images be simple enough that you can use lines and pixels to draw them.
You can save pictures as matrices, and then use the
NewPiccommand to render them again. You should only use this method if you need to manipulate your images as algebraic variables. It takes more space, and you will need to enter the coordinates yourself, or acquire an external program to scan your graph screen for you.