Game Development Reference
In-Depth Information
Figure 7-14 . Call a .start() method off the gamePlayLoop object to start GamePlayLoop AnimationTimer
As you can see, the method call is in place, and the Java code is error free, as
NetBeans can now find the .start() method in the GamePlayLoop class. Next, let's use
the Run Project sequence and test a pulse or two to determine what will happen
now that the GamePlayLoop AnimationTimer subclass has been activated using the
.start() method call. It will be interesting to see what throwing an error inside the
.handle() method will do!
As Figure 7-15 demonstrates, you are getting repeated errors related to the content
in the .handle() method.
 
 
Search WWH ::




Custom Search