28.04.2019 Views

[JAVA][Beginning Java 8 Games Development]

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 7 ■ The Foundation of Game Play Loop: The <strong>Java</strong>FX Pulse System and the Game Processing Architecture<br />

NetBeans will create a bootstrap infrastructure for the GamePlayLoop.java class, with a package and a class<br />

declaration, as illustrated in Figure 7-4. Now, you add an extends keyword and AnimationTimer.<br />

Figure 7-4. NetBeans creates a GamePlayLoop.java class and opens it in an editing tab in the IDE, for you to edit<br />

Mouse over the error, press Alt+Enter, and select Add import, as displayed in Figure 7-5.<br />

Figure 7-5. Subclass an AnimationTimer superclass with an extends keyword: press Alt+Enter, and select Add import<br />

www.it-ebooks.info<br />

149

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!