Mr. StructureOh, yes ... Mr. Structure. He often looks like a container, however in our game he is spread out. It is his responsibility to hold the X and Y coordinates, current shape, current shape block to use, and the current frame. He has just a few variables to keep things semi-organized. As I mentioned earlier, he will have a larger job when it comes to keep score, and manage any other statistics. He is a really open guy, global to be precise. He doesn't mind helping people and, of course, will let anybody know what he knows. The declarations for him are in Shapes.asm and for the time being are relatively simple. Because Mr. Structure is so open bad things can POSSIBLY happen. It is your job, as a programmer, to make sure that those bad things can NEVER happen. If you let him be corrupted in some manner your whole game might go down the toilet.
|
|