Using Blockers Base Classes
Just because you plan to replace the user interface you wrote for Blockers doesn't mean you need to write the entire thing from scratch again. Instead, you should take the code you already wrote for the base classes in Blockers and use it in this project. As in the last chapter, when you used the sample framework code files for the project, you want to add an existing file and add gui.cs from Blockers as well; only this time, you don't want to link the file, but instead, you just click Open and add it normally. This move has the effect of copying the code into your new project, so modifying it does not break your existing Blockers implementation.
You use fonts in this class this time (for rendering the text-box text ...
Get Beginning 3D Game Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.