O'Reilly logo

Beginning Java 8 Games Development by Wallace Jackson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 9

image

Controlling Your Action Figure: Implementing Java Event Handlers and Using Lambda Expressions

Now that we have created the public abstract Actor and Hero classes, which I call the “actor engine,” in Chapter 8, let’s get back into our InvinciBagel.java primary application class coding here in Chapter 9, and create the event handling framework that we can use to control the primary hero for our game, the InvinciBagel himself. The event handling that implements the interface between the player and your game programming logic could be looked at as the “interactivity engine” for your game, if we follow the engine paradigm we have been using ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required