Game Development Reference
In-Depth Information
The Java code still has a wavy red error highlight under the class declaration state-
ment, seen in Figure 14-5 .
Figure 14-5 . Overriding .update() method doesn't remove the error, so mouse-over again, to reveal needed con-
structor
Mouse-over this and you'll see you need to code a Prop() constructor method using
the following Java code:
public Prop (String SVGdata, double xLocation, double
yLocation, Image... spriteCels) {method code}
To remove the error seen in Figure 14-6 , use Alt-Enter , selecting Add import for
javafx.scene.image.Image .
 
 
 
Search WWH ::




Custom Search