CHAPTER 3

image

Extending the Framework

This chapter begins by reviewing the code for the Cheese, Please! game from the previous chapter. Your main focus will be streamlining your code from the previous chapter by refactoring common elements into new classes that can be reused as needed. This will also make it easier to introduce more-advanced features, such as new methods for processing user input. Then you will see how your new classes can be used as a basis for additional game projects. Finally, you will improve your custom extensions of the Actor class by adding improved collision detection and response, managing multiple animations, and implementing ...

Get Beginning Java Game Development with LibGDX 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.