Before We Begin

As with the previous “theoretical” chapters, you are going to create a couple of examples to get a feel for what's happening. For this chapter, you can reuse what you developed in the last chapter, mainly the GLGame, GLGraphics, Texture, and Vertices classes, along with the rest of the framework classes.

Your demo project consists of a starter called GameDev2DStarter, which presents a list of tests to run. Reuse the code of the GLBasicsStarter and simply replace the class names of the tests. Add each of the tests to the manifest in the form of <activity> elements.

Each of the tests is again an instance of the Game interface, and the actual test logic is implemented in the form of a Screen contained in the Game implementation of the test, as in the previous chapter. Only the relevant portions of the Screen will be presented to conserve some pages. The naming conventions are again XXXTest and XXXScreen for the GLGame and Screen implementation of each test.

With that out of your way, it's time to talk about vectors.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.15.160.43